WebPay PHP bindings https://webpay.jp
require "vendor/autoload.php";
use WebPay\WebPay;
$webpay = new WebPay('test_secret_YOUR_TEST_API_KEY');
$webpay->charges->create(array(
"amount"=>400,
"currency"=>"jpy",
"card"=>
array("number"=>"4242-4242-4242-4242",
"exp_month"=>11,
"exp_year"=>2014,
"cvc"=>123,
"name"=>"KEI KUBO"),
"description"=>"アイテムの購入"
));
See WebPay PHP API Document for more details.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request