2017 © Pedro PelĂĄez
 

library omnipay-csob

ČSOB gateway for Omnipay payment processing library

image

bileto/omnipay-csob

ČSOB gateway for Omnipay payment processing library

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

The README.md

Omnipay: ČSOB

ČSOB 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 ČSOB Online Payment Gateway support for Omnipay., (*2)

ČSOB Online Payment Gateway documentation, (*3)

Installation

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

{
    "require": {
        "bileto/omnipay-csob": "~0.8"
    }
}

TL;DR

use Omnipay\Csob\GatewayFactory;

$publicKey = __DIR__ . '/tests/unit/Sign/assets/mips_iplatebnibrana.csob.cz.pub';
$privateKey = __DIR__ . '/tests/unit/Sign/assets/rsa_A1029DTmM7.key';
$gateway = GatewayFactory::createInstance($publicKey, $privateKey);

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);
}

Test Project

The project uses PHPUnit and Mockery to provide unit tests., (*5)

./vendor/bin/phpunit

The Versions

10/05 2017

dev-master

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger
by Jan Machala

payment pay gateway merchant purchase omnipay csob

10/05 2017

v0.7.0

0.7.0.0 https://github.com/bileto/omnipay-csob

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger
by Jan Machala

payment pay gateway merchant purchase omnipay csob

02/08 2016

v0.6.0

0.6.0.0 https://github.com/bileto/omnipay-csob

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger
by Jan Machala

payment pay gateway merchant purchase omnipay csob

04/02 2016

dev-functional-tests

dev-functional-tests https://github.com/bileto/omnipay-csob

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob

03/02 2016

v0.5.0

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob

25/01 2016

v0.4.0

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob

17/12 2015

v0.3.0

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob

30/06 2015

v0.2.0

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob

25/06 2015

v0.1.0

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

ČSOB gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Michal SĂ€nger

payment pay gateway merchant purchase omnipay csob