Omnipay Integration with Laravel 5

Omnipay is a common payment gateway package which supports a variety of payment gateways. Here is the step by step guide on integrating this package with Laravel 5.

1. Include the laravel-omnipay package as a dependency in your composer.json

"ignited/laravel-omnipay": "2.*",

2. Include the required payment gateway. Here we use Paypal. For other gateway packages click here

"omnipay/paypal": "*",

3. Add a ServiceProvider to your providers array in config/app.php:

'providers' => [
   Ignited\LaravelOmnipay\LaravelOmnipayServiceProvider::class,
]

4. Add the Omnipay facade to your facades array:

'Omnipay' => Ignited\LaravelOmnipay\Facades\OmnipayFacade::class,

5. Finally, publish the configuration files by using the command php artisan vendor:publish. Once finished edit the configuration file located @ config/laravel-omnipay.php

Leave a Reply

Your email address will not be published. Required fields are marked *

See More Blogs

Contact us

Partner with Us for Comprehensive IT Solutions

We’re happy to answer any questions you may have and help you determine IT solutions to shape up your idea or streamline your processes.

Your benefits:
What happens next?
1

We Schedule a call at your convenience 

2

We do a discovery and consulting meeting 

3

We prepare a proposal 

Schedule a Free Consultation