Download the PHP package rabol/laravel-simplesubscription-stripe without Composer
On this page you can find all versions of the php package rabol/laravel-simplesubscription-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rabol/laravel-simplesubscription-stripe
More information about rabol/laravel-simplesubscription-stripe
Files in rabol/laravel-simplesubscription-stripe
Package laravel-simplesubscription-stripe
Short Description Get up and running with subscriptions in your Laravel app in minutes instead of days
License MIT
Homepage https://github.com/rabol/laravel-simplesubscription-stripe
Informations about the package laravel-simplesubscription-stripe
Laravel Simple subscription Stripe
This package is not Laravel Cashier, Laravel Cashier is much more advanced and have several other features. If you want to get up and running with subscriptions and Stripe payments for your Laravel app quickly, then this package is for you.
It only contains 1 migration and a helper class.
Setting up Stripe is out of scope for this package
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Here is a simple example of how to use this package.
If you have a customer that should be Tax exempt add something like this:
to the $options when creating the customer in Stripe and remember to add a valid tax_rate in the subscription data
View files
Index - /resources/views/stripe/index.blade.php
Cancled - /resources/views/stripe/canceled.blade.php
Success - /resources/views/stripe/success.blade.php `
web.php - /routes/web.php
Handling Stripe callbacks - webhooks
To handle webhooks, create a new controller and extend it from ` and create a method for each event that you would like to handle.
The method should be the studly case name of the event prefixed with and postfixed with like this:
Example:
Please be aware that Stripe cannot guarantee that the events arrives at your endpoint in the correct order. One way to handle this is to create Jobs that will be executed when an event occur and the job should then be able to handle 'retry' in case a 'updated' event arrives before a 'created event' arrive.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Steen Rabol
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-simplesubscription-stripe with dependencies
illuminate/contracts Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
stripe/stripe-php Version ^16.0