2017 © Pedro Peláez
 

library omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

image

bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  • Wednesday, May 10, 2017
  • by bileto
  • Repository
  • 16 Watchers
  • 1 Stars
  • 6,139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

Omnipay: TatraBank

TatraBank driver for the Omnipay PHP payment processing library, (*1)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements TatraBank Online Payment Gateway support for Omnipay., (*2)

TatraBank does not provide sandbox environment, but they provide this online Testing form., (*3)

Docs

CardPay (SK), (*4)

Installation

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

{
    "require": {
        "bileto/omnipay-tatrabank": "~0.2"
    }
}

TL;DR

use Omnipay\Tatrabank\GatewayFactory;

$secureKey = "3132333435363738393031323334353637383930313233343536373839303132";
$gateway = GatewayFactory::createInstance($secureKey);

try {
    $merchantId = 'A1029DTmM7';
    $orderNo = '12345677';
    $returnUrl = 'http://localhost:8000/gateway-return.php';
    $description = 'Shopping at myStore.com (Lenovo ThinkPad Edge E540, Shipping with PPL)';

    $purchase = new \Omnipay\Csob\Purchase($merchantId, $orderNo, $returnUrl, $description);
    $purchase->setCart([
        new \Omnipay\Csob\CartItem("Notebook", 1, 1500000, "Lenovo ThinkPad Edge E540..."),
        new \Omnipay\Csob\CartItem("Shipping", 1, 0, "PPL"),
    ]);

    /** @var \Omnipay\Csob\Message\ProcessPaymentResponse $response */
    $response = $gateway->purchase($purchase->toArray())->send();

    // Payment init OK, redirect to the payment gateway
    echo $response->getRedirectUrl();
} catch (\Exception $e) {
    dump((string)$e);
}

Notes

There is also list of 3rd party fake gateways, but HMAC version is not present., (*6)

The Versions

10/05 2017

dev-master

9999999-dev https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

10/05 2017

v0.5.0

0.5.0.0 https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

24/11 2016

v0.4.0

0.4.0.0 https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

08/09 2016

v0.3.0

0.3.0.0 https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

01/08 2016

dev-add-reference-email-and-customer-name

dev-add-reference-email-and-customer-name https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Machala
by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

11/07 2016

v0.2.0

0.2.0.0 https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank

07/03 2016

v0.1.0

0.1.0.0 https://github.com/bileto/omnipay-tatrabank

TatraBank gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Smrkovský

payment pay gateway merchant purchase omnipay tatrabank