2017 © Pedro Peláez
 

library laravel-omnipay

An Omnipay bridge for Laravel 5.

image

mayoz/laravel-omnipay

An Omnipay bridge for Laravel 5.

  • Monday, January 25, 2016
  • by mayoz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel: Omnipay

An Omnipay bridge for Laravel 5, (*1)

Latest Version on Packagist Software License, (*2)

Install

Via Composer, (*3)

``` bash $ composer require mayoz/laravel-omnipay, (*4)


### Configuration After installing the Omnipay library, register the `Mayoz\Omnipay\OmnipayServiceProvider` in your `config/app.php` configuration file: ```php 'providers' => [ // Other service providers... Mayoz\Omnipay\OmnipayServiceProvider::class, ],

Also, add the Omnipay facade to the aliases array in your app configuration file:, (*5)

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

Finally, publish the configuration files via php artisan vendor:publish., (*6)

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., (*7)

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

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

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:, (*8)

``` bash $ composer require omnipay/stripe, (*9)

or

$ composer require mayoz/omnipay-iyzico, (*10)


## Usage Next, you are ready to use. Please see the following examples. ```php <?php namespace App\Http\Controllers; use Omnipay; use Illuminate\Routing\Controller; class HomeController extends Controller { /** * Purchase. * * @return Response */ public function purchase() { // Send purchase request $response = Omnipay::purchase([ 'amount' => '10.00', 'currency' => 'USD', 'card' => [ 'number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123' ] ])->send(); // Process response if ($response->isSuccessful()) { // Payment was successful print_r($response); } elseif ($response->isRedirect()) { // Redirect to offsite payment gateway $response->redirect(); } else { // Payment failed echo $response->getMessage(); } } }

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found., (*11)

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to., (*12)

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*13)

Security

If you discover any security related issues, please email srcnckr@gmail.com instead of using the issue tracker., (*14)

License

THis package is licensed under The MIT License (MIT)., (*15)

The Versions

25/01 2016

dev-master

9999999-dev https://github.com/mayoz/laravel-omnipay

An Omnipay bridge for Laravel 5.

  Sources   Download

MIT

The Requires

 

by Sercan Çakır

laravel payment gateway merchant omnipay

25/01 2016

v2.0.1

2.0.1.0 https://github.com/mayoz/laravel-omnipay

An Omnipay bridge for Laravel 5.

  Sources   Download

MIT

The Requires

 

by Sercan Çakır

laravel payment gateway merchant omnipay

08/11 2015

v2.0.0

2.0.0.0 https://github.com/mayoz/laravel-omnipay

An Omnipay bridge for Laravel 5.

  Sources   Download

MIT

The Requires

 

by Sercan Çakır

laravel payment gateway merchant omnipay