By ARCANEDEV©
You can sign up for a Stripe account at https://stripe.com.
- PHP >= 5.6.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
You can install the bindings via Composer. By running composer require arcanedev/stripe
.
Simple usage looks like :
require_once('vendor/autoload.php');
use Arcanedev\Stripe\Stripe;
use Arcanedev\Stripe\Resources\Charge;
Stripe::setApiKey('your-stripe-api-key');
$charge = Charge::create([
'card' => [
'number' => '4242424242424242',
'exp_month' => 8,
'exp_year' => 2018,
],
'amount' => 2000,
'currency' => 'usd'
]);
var_dump($charge);
Please see Stripe API Reference for up-to-date documentation.
Any ideas are welcome. Feel free to submit any issues or pull requests, please check the contribution guidelines.
If you discover any security related issues, please email arcanedev.maroc@gmail.com instead of using the issue tracker.
- Thanks to stripe/stripe-php team and their contributors.
- ARCANEDEV
- All Contributors