waxis / cashier-braintree
v2.1.8
2016-12-19 17:15 UTC
Requires
- php: >=5.5.9
- braintree/braintree_php: ~3.0
- dompdf/dompdf: ^0.6.1
- illuminate/database: ~5.1
- illuminate/support: ~5.1
- nesbot/carbon: ~1.0
- symfony/http-kernel: ~2.7|~3.0
Requires (Dev)
- illuminate/http: ~5.1
- illuminate/routing: ~5.1
- illuminate/view: ~5.1
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
- vlucas/phpdotenv: ~2.0
README
简介
Laravel Cashier 为 Braintree 的订阅计费服务提供了一种表达性、流畅的接口。它处理了几乎所有您害怕编写的样板订阅计费代码。除了基本的订阅管理外,Cashier 还可以处理优惠券、订阅交换、取消宽限期,甚至生成发票 PDF。
测试设置
为了测试,您需要在本地和 Braintree 账户中设置以下详细信息。建议您注册一个 Braintree 沙箱账户。
本地
.env
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=
BRAINTREE_MODEL=User
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 的文档可以在 Laravel 网站 上找到。
许可证
Laravel Cashier 是开源软件,受 MIT 许可证 许可。