2017 © Pedro Peláez
 

library omnipay-idram

iDram gateway for Omnipay payment processing library

image

ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  • Wednesday, June 6, 2018
  • by ptuchik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 109 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Omnipay: iDram

iDram driver for the Omnipay Laravel payment processing library, (*1)

Latest Stable Version Total Downloads, (*2)

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

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:, (*4)

{
    "require": {
        "ptuchik/omnipay-idram": "~1.0"
    }
}

And run composer to update your dependencies:, (*5)

composer update

Or you can simply run, (*6)

composer require ptuchik/omnipay-idram

Basic Usage

  1. Use Omnipay gateway class:
    use Omnipay\Omnipay;
  1. Initialize iDram gateway:
    $gateway = Omnipay::create('Idram');
    $gateway->setAccountId(env('ACCOUNT_ID'));
    $gateway->setSecretKey(env('SECRET_KEY'));
    $purchaseData = $gateway->purchase(); // Call purchase() to get PurchaseRequest instance
    $purchaseData->setLanguage(\App::getLocale()); // Language
    $purchaseData->setAmount(10); // Amount to charge
    $purchaseData->setTransactionId(XXXX); // Transaction ID from your system
  1. Call purchase, it will automatically redirect to iDram's hosted page

$purchase = $gateway->purchase()->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('Idram'); $gateway->setAccountId(env('ACCOUNT_ID')); $gateway->setSecretKey(env('SECRET_KEY')); $purchase = $gateway->completePurchase()->send(); // Do the rest with $purchase and response with 'OK' if ($purchase->isSuccessful()) { // Your logic } return new Response('OK');

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

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

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

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

The Versions

06/06 2018

dev-master

9999999-dev https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

06/06 2018

dev-develop

dev-develop https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

06/06 2018

1.0.4

1.0.4.0 https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

04/06 2018

1.0.3

1.0.3.0 https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

31/05 2018

1.0.2

1.0.2.0 https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

31/05 2018

1.0.1

1.0.1.0 https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram

31/05 2018

1.0.0

1.0.0.0 https://github.com/ptuchik/omnipay-idram

iDram gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avik Aghajanyan

payment pay gateway merchant purchase omnipay idram