Download the PHP package amostajo/laravel-shop-gateway-omnipay without Composer
On this page you can find all versions of the php package amostajo/laravel-shop-gateway-omnipay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amostajo/laravel-shop-gateway-omnipay
More information about amostajo/laravel-shop-gateway-omnipay
Files in amostajo/laravel-shop-gateway-omnipay
Package laravel-shop-gateway-omnipay
Short Description Omnipay gateway for Laravel Shop package.
License MIT
Informations about the package laravel-shop-gateway-omnipay
OMNIPAY GATEWAY (for Laravel Shop Package)
Omnipay Gateway solution for Laravel Shop.
Enables multiple gateway payment, like PayPal, 2Checkout, Stripe and others. See the full list at Omnipay's page.
Gateways
This package comes with:
- Omnipay
Contents
- Installation
- Adding a service
- Gateway Usage
- Accessing Omnipay
- Adding Options
- Callbacks
- Tested Services
- License
- Additional Information
Installation
Add
to your composer.json
. Then run composer install
or composer update
.
Then in your config/shop.php
add
in the gateways
array.
Adding a service
Once installed, the next step will be to add the service of your choice in composer.json
file.
The services available are listed here:
https://github.com/thephpleague/omnipay#payment-gateways
For example, the following dependency must be added to use Stripe:
Gateway Usage
The following example will give you an idea of how use and access omnipay:
The lines may vary depending on the service chosen.
NOTE: Checkout and placing order shouldn't vary from standard Laravel Shop flow.
Accessing Omnipay
You can always access the omnipay
object if you need to set or call any specific method required by a service:
Adding Options
You can add more options, apart from amount
, currency
and card
, to the authorization and purchase methods:
Callbacks
Use the following example when callbacks are needed:
Tested Services
- PayPal
- Stripe
License
This package is free software distributed under the terms of the MIT license.
Additional Information
This package uses Omnipay.
All versions of laravel-shop-gateway-omnipay with dependencies
illuminate/console Version ~5.0
illuminate/support Version ~5.0
omnipay/common Version ~2.4