ahadcove / cashier-braintree
Laravel Cashier provides an expressive, fluent interface to Braintree's subscription billing services.
Requires
- php: ^8.0|^7.0|^9.0|^10.0|^11.0
- braintree/braintree_php: ^6.19.0
- dompdf/dompdf: ^v2.0.8
- illuminate/contracts: v11.20.0
- illuminate/database: ^v11.20.0
- illuminate/http: ^v11.20.0
- illuminate/routing: ^v11.20.0
- illuminate/support: ^v11.20.0
- illuminate/view: ^v11.20.0
- nesbot/carbon: ^3.7.0
- symfony/http-kernel: ~2.7|~3.0|~4.0|~5.0|~6.0|~7.0|~8.0
Requires (Dev)
- ext-json: *
- mockery/mockery: ~1.6.12
- phpunit/phpunit: ~11.3.1
- 11.0.x-dev
- v11.0.0
- 10.3.x-dev
- v10.3.0
- 10.2.x-dev
- v10.2.0
- v10.1.0
- v10.0.0
- 9.0.3.x-dev
- v9.0.3
- 9.0.2.x-dev
- v9.0.2
- 9.0.1.x-dev
- v9.0.1
- 9.0.0.x-dev
- v9.0.0
- 8.1.0.x-dev
- v8.1.0
- 8.0.0.x-dev
- v8.0.0
- 7.0.x-dev
- v7.0.0
- 4.1.x-dev
- v4.1.0
- 4.0.x-dev
- dev-master / 4.0.x-dev
- v4.0.0
- 3.3.x-dev
- v3.3.0
- 3.2.x-dev
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- 3.0.x-dev
- v3.0.1
- v3.0.0
- v2.1.0
- 2.0.x-dev
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- 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-fb/payment_token
This package is auto-updated.
Last update: 2024-10-13 16:49:28 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 ~6.12|~6.13|~6.14, 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.
Submitting a build
* Update composer.json to include new php version
* Checkout branch for version that you want
* Create a git tag with the version
* That's it. It will auto be updated on packagist and you can now install it in your app