ahadcove / cashier-braintree
Laravel Cashier 提供了一个表达性、流畅的接口,用于 Braintree 的订阅计费服务。
v11.0.0
2024-08-13 16:29 UTC
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-09-13 16:43:23 UTC
README
简介
Laravel Cashier Braintree 提供了一个表达性、流畅的接口,用于访问 Braintree 的订阅计费服务。它几乎处理了你可能不想亲自编写的所有订阅计费模板代码。除了基本的订阅管理外,Cashier Braintree 还可以处理优惠券、订阅互换、宽限期取消以及生成发票 PDF。
支持
支持 PHP ^7.2, Laravel ~6.12|~6.13|~6.14, 和 phpunit ~8.0
测试
为了运行库的测试,你需要在本地以及 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 网站 上找到。
提交构建
* 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