PHPackages                             mayoz/laravel-omnipay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. mayoz/laravel-omnipay

ActiveLibrary[Payment Processing](/categories/payments)

mayoz/laravel-omnipay
=====================

An Omnipay bridge for Laravel 5.

v2.0.1(10y ago)1974[1 PRs](https://github.com/mayoz/laravel-omnipay/pulls)MITPHPPHP &gt;=5.5.9

Since Nov 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mayoz/laravel-omnipay)[ Packagist](https://packagist.org/packages/mayoz/laravel-omnipay)[ Docs](https://github.com/mayoz/laravel-omnipay)[ RSS](/packages/mayoz-laravel-omnipay/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel: Omnipay
================

[](#laravel-omnipay)

**An Omnipay bridge for Laravel 5**

[![Latest Version on Packagist](https://camo.githubusercontent.com/858c82e0238d55066c318579531fc080cd991b1d912129260b251a6d76f4b64a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61796f7a2f6c61726176656c2d6f6d6e697061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mayoz/laravel-omnipay)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Install
-------

[](#install)

Via Composer

```
$ composer require mayoz/laravel-omnipay
```

### Configuration

[](#configuration)

After installing the Omnipay library, register the `Mayoz\Omnipay\OmnipayServiceProvider` in your `config/app.php` configuration file:

```
    'providers' => [
        // Other service providers...

        Mayoz\Omnipay\OmnipayServiceProvider::class,
    ],
```

Also, add the `Omnipay` facade to the `aliases` array in your `app` configuration file:

```
    'Omnipay' => Mayoz\Omnipay\Facades\Omnipay::class,
```

Finally, publish the configuration files via `php artisan vendor:publish`.

Open the `config/omnipay.php` configuration file and set the default provider connection with `default` key. Define the connections with initialize configurations you want in `providers` key.

```
    'providers' => [
        'Stripe' => [
            'ApiKey'   => '',
            'testMode' => false,
        ],

        'Iyzico' => [
            'ApiKey'    => '',
            'ApiSecret' => '',
            'testMode'  => false,
        ]
    ],
```

Omnipay Driver
--------------

[](#omnipay-driver)

This package supports when yours driver has been using the Omnipay infrastructure. Now, add the omnipay provider you want to use. For example:

```
$ composer require omnipay/stripe
# or
$ composer require mayoz/omnipay-iyzico
```

Usage
-----

[](#usage)

Next, you are ready to use. Please see the following examples.

```
