2017 © Pedro Peláez
 

library omnipay-payu

PayU Russia driver for the Omnipay payment processing library

image

romm1/omnipay-payu

PayU Russia driver for the Omnipay payment processing library

  • Tuesday, June 26, 2018
  • by RomM1
  • Repository
  • 1 Watchers
  • 0 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Omnipay: PayU

PayU Russia driver for the Omnipay payment processing library, (*1)

Latest Stable Version Total Downloads, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.6+. This package implements PayU support for Omnipay., (*3)

Installation

$ composer require romm1/omnipay-payu

Basic Usage

  1. Use Omnipay gateway class:
    use Omnipay\Omnipay;
  1. Initialize PayU gateway:
    $gateway = Omnipay::create('PayU');
    $gateway->setMerchantName(env('MERCHANT_NAME'));
    $gateway->setSecretKey(env('SECRET_KEY'));
  1. Call purchase, it will automatically redirect to PayU hosted page
    $purchase = $gateway->purchase([
            'amount' => 100,
            'transactionId' => 1,
            'orderDate' => date('Y-m-d H:i:s'),
            'items' => [
                new \Omnipay\PayU\Item([
                    'name' => 'Item',
                    'code' => 'ItemCode',
                    'price' => '100',
                    'priceType' => 'NET',
                    'quantity' => 1,
                    'vat' => 0,
                ]),
            ]
        ])->send();

    $purchase->redirect();
  1. Create a webhook controller to handle the callback request at your RESULT_URL and catch the webhook as follows
    $gateway = Omnipay::create('PayU');
    $gateway->setMerchantName(env('MERCHANT_NAME'));
    $gateway->setSecretKey(env('SECRET_KEY'));

    $purchase = $gateway->completePurchase()->send();

    if ($purchase->isSuccessful()) {
        // Your logic

        return $purchase->completeResponse();
    }

For general usage instructions, please see the main Omnipay repository., (*4)

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

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

The Versions

26/06 2018

dev-master

9999999-dev https://github.com/RomM1/omnipay-payu

PayU Russia driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Roman Mukhamadeev

payment pay gateway merchant purchase omnipay payu payu-russia

26/06 2018

v3.0.1

3.0.1.0 https://github.com/RomM1/omnipay-payu

PayU Russia driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Roman Mukhamadeev

payment pay gateway merchant purchase omnipay payu payu-russia

08/06 2018

v3.0.0

3.0.0.0 https://github.com/RomM1/omnipay-payu

PayU Russia driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Roman Mukhamadeev

payment pay gateway merchant purchase omnipay payu payu-russia