Download the PHP package lighth7015/cashier-authorize-dot-net without Composer
On this page you can find all versions of the php package lighth7015/cashier-authorize-dot-net. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lighth7015/cashier-authorize-dot-net
More information about lighth7015/cashier-authorize-dot-net
Files in lighth7015/cashier-authorize-dot-net
Package cashier-authorize-dot-net
Short Description Laravel Cashier-Authorize provides an expressive, fluent interface to Authorize.net's subscription billing services.
License MIT
Informations about the package cashier-authorize-dot-net
Laravel Cashier-Authorize
Introduction
This package provides a compatible, expressive and fluent interface to Authorize.net's native subscription billing services. It handles (mostly) all of the boilerplate subscription billing code you would otherwise have to manage yourself. In addition to basic subscription management, this package can also handle cancellation grace periods.
Basic Setup
Please read the following for the basic setup.
Composer Setup
composer require lighth7015/cashier-authorize-dot-net
.env
ADN_ENV= ADN_LOG=authorize.log
ADN_API_LOGIN_ID= ADN_TRANSACTION_KEY= ADN_SECRET_KEY=Simon
ADN_ENV should be one of: sandbox, production
Migrations
You will need to make migrations that include the following:
Publish
You will need to publish the assets of this package.
php artisan vendor:publish --provider="Laravel\CashierAuthorizeNet\CashierServiceProvider"
Configuration
The following files need to be updated, as demonstrated below. config/services.php
needs to be updated to match your User account's class name.
config/cashier.php
config/services.php
You can also set this value with the following .env
variable: ADN_MODEL
Basic Usage
There are several differences with Authorize.net vs. other services (e.g. Stripe); firstly, Authorize.net is slighly slower and a more restricted subscription provider. You cannot perform certain things (i.e. swap subscriptions, change the quantity of a subscription) without first canceling and creating a new subscription.
Laravel\CashierAuthorize\Billable
interface
Transaction Details
Enabling the API To enable the Transaction Details API: 1) Log on to the Merchant Interface at https://account.authorize.net . 2) Select Settings under Account in the main menu on the left. 3) Click the Transaction Details API link in the Security Settings section. The Transaction Details API screen opens. 4) If you have not already enabled the Transaction Details API, enter the answer to your Secret Question, then click Enable Transaction Details API. 5) When you have successfully enabled the Transaction Details API, the Settings page displays.
CRON job
You need to enable the following CRON job to check the status of your user's subscriptions. This can run as often as you like, and will check to confirm that your user's subscription is active. If the status is changed to cancelled or suspended - the system will disable their subscription locally. Your team will need to resolve the payment issue with Authorize.net and then move forward.
Limitations
Another limitation is time related. Due to the fact that Authorize.net uses a SOAP structure for its APIs, there needs to be a time delay between adding a customer with a credit card to their system and then adding a subscription to that user. This could be done easily in your app by having the user enter their credit card information, and then allowing a confirmation of the subscription they wish to purchase as another action. This time can be as little as a second, but all tests thus far with immediate adding of subscriptions fails to work, so please be mindful of this limitation when designing your app.
License
Laravel Cashier-Authorize is open-sourced software licensed under the MIT license
New Document
All versions of cashier-authorize-dot-net with dependencies
dompdf/dompdf Version ^0.6.1
illuminate/container Version ^5.2|^5.1
illuminate/database Version ~5.1
illuminate/support Version ~5.1
nesbot/carbon Version ~1.0
php Version >=5.5.9
symfony/http-kernel Version ~2.7|~3.0