reecem / cashier-braintree
一个 Laravel Cashier 分支。
v3.4.0
2022-11-07 17:16 UTC
Requires
- php: ^8.0
- braintree/braintree_php: ~6.0
- dompdf/dompdf: ^2.0
- illuminate/contracts: ~9.0
- illuminate/database: ~9.0
- illuminate/http: ~9.0
- illuminate/routing: ~9.0
- illuminate/support: ~9.0
- illuminate/view: ~9.0
- nesbot/carbon: ^2.0
- symfony/http-kernel: ~6.0
Requires (Dev)
- ext-json: *
- mockery/mockery: ~1.0
- phpunit/phpunit: ~9.0
README
简介
原始包的维护分支。这是为了支持当前客户的应用程序。
Laravel Cashier Braintree 提供了对 Braintree 订阅计费服务的丰富、流畅的接口。它处理了几乎所有您害怕编写的样板订阅计费代码。除了基本的订阅管理外,Cashier Braintree 还可以处理优惠券、订阅互换、取消宽限期,甚至生成发票 PDF。
测试
为了运行库的测试,您需要在本地和您的 Braintree 账户中设置以下详细信息。
本地
环境变量
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
BRAINTREE_MODEL=ReeceM\Cashier\Tests\User
您可以在 phpunit.xml.dist
文件中设置这些变量。
Braintree
计划
* 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 ID: coupon-1, Price: $5
* Discount ID: plan-credit, Price $1
官方文档
Cashier Braintree 的文档可以在 Laravel 网站 上找到。
许可证
Laravel Cashier Braintree 是开源软件,采用 MIT 许可证。