Download the PHP package avro/stripe-bundle without Composer
On this page you can find all versions of the php package avro/stripe-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avro/stripe-bundle
More information about avro/stripe-bundle
Files in avro/stripe-bundle
Package stripe-bundle
Short Description Symfony2 Bundle for managing user subscriptions and payments with Stripe.
License MIT
Homepage http://github.com/jdewit/AvroStripeBundle
Informations about the package stripe-bundle
AvroStripeBundle
A symfony2 bundle for interacting with the awesome Stripe payment service.
Features:
- Allow users to pay and receive money
- Subscribe a user to a plan
- Update a users plan
- View/print invoices & charges
- Create coupons
- Create plans
Status
WIP
Step 1: Download AvroStripeBundle using composer
Add AvroStripeBundle in your composer.json:
Now tell composer to download the bundle by running the command:
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Update your user class
Step 5: Extend the bundle
Create a bundle skeleton that extends this bundle
Step 6: Create a plan class
The plan class is a superclass which needs to be extended. This allows you to add custom methods such as usage limits etc...
Step 7: Configure your application's security.yml
Make sure the routes are accessible only to authenticated users
Step 8: Configure the AvroStripeBundle
Add your Stripe API keys to your config.yml
Step 9: Import AvroStripeBundle routing files
Import the AvroStripeBundle routing files.
In YAML:
Step 10: Update your database schema
Now that the bundle is configured, the last thing you need to do is update your database schema.
For MongoDB, you can run the following command to create the indexes.
Hooks
The bundle receives hooks at "/stripe/hook" and dispatches the event which you can listen for
for example.
the 'charge.succeeded' event is dispatched as 'avro_stripe.charge.succeeded' by the HookController
Notes
If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.
In order to use the built-in email functionality, you must activate and configure the SwiftmailerBundle.