laravel / cashier-braintree by taylorotwell

Laravel Cashier provides an expressive, fluent interface to Braintree's subscription billing services.
166,441
122
15
Package Data
Maintainer Username: taylorotwell
Maintainer Contact: taylorotwell@gmail.com (Taylor Otwell)
Package Create Date: 2016-03-08
Package Last Update: 2019-01-02
Language: PHP
License: MIT
Last Refreshed: 2019-01-11 00:33:11
Package Statistics
Total Downloads: 166,441
Monthly Downloads: 6,837
Daily Downloads: 392
Total Stars: 122
Total Watchers: 15
Total Forks: 76
Total Open Issues: 1

Laravel Cashier - Braintree Edition (Beta)

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

Laravel Cashier 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 can handle coupons, swapping subscription, cancellation grace periods, and even generate invoice PDFs.

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 can be found on the Laravel website.

License

Laravel Cashier is open-sourced software licensed under the MIT license.