Download the PHP package vovanmix/laravel5-billing-braintree without Composer

On this page you can find all versions of the php package vovanmix/laravel5-billing-braintree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel5-billing-braintree

Braintree for Laravel 5

Installation

Add to composer.json this line:

"vovanmix/laravel5-billing-braintree": "1.*",

Add to config/app.php "providers" section:

"Vovanmix\Laravel5BillingBraintree\BraintreeServiceProvider",

That's it!

Configuration

To publish a the package configuration file, run in console:

Then open config/billing_braintree.php to setup your environment and keys

Usage

Obtain a client side token:

Billing::getClientToken()

To use inside Blade template:

{{ Billing::getClientToken() }}

Get summary for the plan

Create customer

Create subscription

Update subscription payment method

Get subscription details

Checks:

Checks can be used to easily get information about subscription state. This methods implement some additional logic, like Past Due handling and Grape Period

Enabled

Most important check. Enabled means that user can still use subscription

Returns True for the following states:

Active

Active means that subscription can be used in the future. Canceled and Expired subscriptions cannot be updated.

Returns True for the following states:

Successfully Billed

Returns true if there was at least one successful payment in this subscription

Paid

Paid means that this user doesn't owe money for now

Returns True for the following states:

Past Due

Returns true if the subscription is past due

Grace period

Grace period can be enabled or disabled in this plugin's config, parameter allowGracePeriod. It's enabled by default

If it is enabled, after cancelling subscription user can use the subscription until the end of the billing cycle. For example, if the payment date is 10th od each month, and user paid his bill on November 10, and cancelled his subscription on November 11, he still can use the subscription till December 10.

The ability to use the subscription means that checkIfSubscriptionIsEnabled() method will return TRUE.

Past Due handling

By default subscriptions with Past Due will be considered Enabled. You have to cancel subscription to them in order to block access

It can be changed in config, parameter allowAccessForPastDue.

Cancel subscription


All versions of laravel5-billing-braintree with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 5.x
laravel/framework Version 5.x
braintree/braintree_php Version 3.6.x
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vovanmix/laravel5-billing-braintree contains the following files

Loading the files please wait ....