mirzabusatlic / cashier-braintree
Laravel Cashier provides an expressive, fluent interface to Braintree's subscription billing services.
v3.1.2
2019-04-16 16:38 UTC
Requires
- php: ^7.1.3
- braintree/braintree_php: ~3.38
- dompdf/dompdf: ^0.8.0
- illuminate/contracts: ~5.7.0|~5.8.0|~5.9.0
- illuminate/database: ~5.7.0|~5.8.0|~5.9.0
- illuminate/http: ~5.7.0|~5.8.0|~5.9.0
- illuminate/routing: ~5.7.0|~5.8.0|~5.9.0
- illuminate/support: ~5.7.0|~5.8.0|~5.9.0
- illuminate/view: ~5.7.0|~5.8.0|~5.9.0
- nesbot/carbon: ^1.26.3|^2.0
- symfony/http-kernel: ~4.0
Requires (Dev)
- ext-json: *
- mockery/mockery: ~1.0
- phpunit/phpunit: ~7.0
README
Introduction
Laravel Cashier 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 can handle coupons, swapping subscription, cancellation grace periods, and even generate invoice PDFs.
Testing
You will need to set the following details locally and on your Braintree account in order to run the library's tests.
Local
.env
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
BRAINTREE_MODEL=User
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 can be found on the Laravel website.
License
Laravel Cashier is open-sourced software licensed under the MIT license