twitchalerts / cashier-cib
Laravel Cashier provides an expressive, fluent interface to Braintree's subscription billing services.
Requires
- php: >=7.1.0
- v9.0.0
- v7.0.1
- v7.0.0
- v5.0.0
- v4.1.0
- 4.0.x-dev
- dev-master / 4.0.x-dev
- v4.0.17
- v4.0.16
- v4.0.15
- v4.0.14
- v4.0.13
- v4.0.12
- v4.0.11
- v4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- 3.0.x-dev
- v3.0.0
- v2.1.0
- 2.0.x-dev
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- 1.0.x-dev
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-test
This package is auto-updated.
Last update: 2024-11-12 02:12:45 UTC
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
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 can be found on the Laravel website.
License
Laravel Cashier is open-sourced software licensed under the MIT license.