Download the PHP package culturekings/laravel5-afterpay without Composer
On this page you can find all versions of the php package culturekings/laravel5-afterpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download culturekings/laravel5-afterpay
More information about culturekings/laravel5-afterpay
Files in culturekings/laravel5-afterpay
Package laravel5-afterpay
Short Description Afterpay API integration exposed via Laravel5 services'
License MIT
Informations about the package laravel5-afterpay
Afterpay for Laravel 5
This packages exposes services from CultureKings/Afterpay in Laravel5.
Version Compatibility
Laravel | Laravel5 Afterpay |
---|---|
5.3.x | @dev |
Installation
The recommended way to install is via Composer.
Find the providers key in your config/app.php and register the Afterpay Service Provider
Configuration
Merchant API Configuration
By default, the package uses the following environment variables to auto-configure the plugin without modification:
InStore API Configuration
To customize the configuration file, publish the package configuration using Artisan.
php artisan vendor:publish
Update your settings in the generated app/config/afterpay.php configuration file.
Usage
Merchant API Facades
This package exposes multiple facades for you to use.
Using the facades allows you not to worry about the Authorisation object that is required for calls.
Configuration
Payments
Orders
InStore API Facades
This package exposes multiple facades for you to use.
Authentication is more manual with this API and it is required for you to manually set the details on \CultureKings\Afterpay\Model\InStore\Authorization
.
Customer
Device
Order
PreApproval
Refund
Raw
Raw does away with the Facade and hits the services directly, giving you more flexibility. The trade off is that your now responsible for creating your own Authentication object and injecting it into the services. You can still ask Laravel to create you an Authentication object with your credentials loaded from config.