andreighioc / ag-cb
为Braintree测试快速更新。Laravel Cashier提供了一种表达性、流畅的接口来访问Braintree的订阅计费服务。一些更新
v3.1.3
2020-05-04 13:19 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
介绍
遗憾的是,我们决定放弃laravel/cashier-braintree库的维护。我们建议从现在开始直接使用braintree/braintree_php库。如果您喜欢,您可以自由地分叉并维护自己的版本。
Laravel Cashier Braintree提供了一种表达性、流畅的接口,用于Braintree的订阅计费服务。它处理了您讨厌编写的几乎所有样板订阅计费代码。除了基本的订阅管理外,Cashier Braintree还可以处理优惠券、订阅交换、宽限期取消,甚至可以生成发票PDF。
测试
为了运行库的测试,您需要在本地和您的Braintree账户中设置以下详细信息。
本地
环境变量
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
BRAINTREE_MODEL=Laravel\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许可证。