scubaclick/stripe

Provides a Guzzle service description for Stripe

v1.0 2013-09-22 16:58 UTC

README

Provides a Guzzle service description to access the Stripe API. Still being developed for ScubaClick, so handle with care for now!

Stable Version

v1.0

General Installation

Install by adding the following to the require block in composer.json:

"scubaclick/stripe": "dev-master"

Then run composer update.

Laravel-specific Installation

Add the following in app/config/app.php to the service providers array:

'ScubaClick\Stripe\Providers\LaravelServiceProvider',

Then add to the aliases array the following:

'Stripe' => 'ScubaClick\Stripe\Facades\LaravelFacade',

To change the configuration values, run the following command in the console:

php artisan config:publish scubaclick/stripe

Usage

$newCharge = \Stripe::createCharge([
    'amount'   => '1000',
    'currency' => 'EUR',
    'card'     => 'CARD_TOKEN' // received via stripe.js
]);

Documentation

View the manifest for a list of currently supported methods and parameters. For the full documentation on Stripe, please visit their API Docs.

License

ScubaClick Stripe is licenced under the MIT license.