Download the PHP package steadfastcollective/cashier-extended without Composer
On this page you can find all versions of the php package steadfastcollective/cashier-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cashier-extended
Introduction
Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping subscription, subscription "quantities", cancellation grace periods, and even generate invoice PDFs.
Cashier Extended improves upon the core of Laravel Cashier by adding a store of Charges made, and additional methods to query them, as well as webhooks to keep this updated.
Official Documentation
Documentation for Laravel Cashier can be found on the Laravel website, there are several changes to make when using Laravel Cashier Extended, which are detailed below.
Installation
To get started install the package from composer:
The package will automatically register the service provider and facade.
Next publish the migrations with:
and then run them:
As noted before, we have made a couple of changes to how you use the Cashier package these are detailed below.
The Billable trait has been updated and should use the new namespace:
The following webhooks have been registered to keep your data up to date:
- charge.expired
- charge.failed
- charge.refund.updated
- charge.refunded
- charge.succeeded
- charge.updated
- payment_intent.succeeded
- payment_intent.created
- payment_intent.payment_failed
to make use of the new webhooks you will need to update your routes\Web.php
route file:
If you have extended or would like to extend the WebhookController and add addtional webhooks you can create the following file app\Http\Controllers\WebhookController.php
:
Then be sure to update your routes\Web.php
file:
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Daniel Jones
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of cashier-extended with dependencies
laravel/cashier Version ^12.0
laravel/framework Version ^6.0|^7.0|^8.0