amritms / cashier-braintree
Laravel Cashier provides an expressive, fluent interface to Braintree's subscription billing services.
Requires
- php: ^7.2 | ^8.0
- braintree/braintree_php: ~4.6
- dompdf/dompdf: ^2.0.3
- illuminate/contracts: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/database: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/http: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/routing: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/view: ^6.0|^7.0|^8.0|^9.0|^10.0
- nesbot/carbon: ^2.0
- symfony/http-kernel: ^5.0
Requires (Dev)
- ext-json: *
- mockery/mockery: ~1.0
- phpunit/phpunit: ~8.0
This package is auto-updated.
Last update: 2024-12-05 17:54:29 UTC
README
Introduction
Laravel Cashier Braintree provides an expressive, fluent interface to Braintree'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 Braintree can handle coupons, swapping subscription, cancellation grace periods, and even generate invoice PDFs.
Supports
Supports php ^7.2, Laravel ~5.7.0|~5.8.0|~5.9.0|^6.0|^7.0 and phpunit ~8.0
Testing
You will need to set the following details locally and on your Braintree account in order to run the library's tests.
Local
Environment Variables
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
BRAINTREE_MODEL=Laravel\Cashier\Tests\User
You can set these variables in the phpunit.xml.dist
file.
Braintree
Plans
* Plan ID: monthly-10-1, Price: $10, Billing cycle of every month
* Plan ID: monthly-10-2, Price: $10, Billing cycle of every month
* Plan ID: yearly-100-1, Price: $100, Billing cycle of every 12 months
Discount
* Discount ID: coupon-1, Price: $5
* Discount ID: plan-credit, Price $1
Official Documentation
Documentation for Cashier Braintree can be found on the Laravel website.
License
Laravel Cashier Braintree is open-sourced software licensed under the MIT license.