Download the PHP package slevomat/csob-gateway without Composer
On this page you can find all versions of the php package slevomat/csob-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slevomat/csob-gateway
More information about slevomat/csob-gateway
Files in slevomat/csob-gateway
Informations about the package csob-gateway
CSOB gateway
This repository provides a client library for ČSOB Payment Gateway.
Library supports all endpoints of eAPI 1.9 except NEJsplátku (loan@shop). Pull requests are welcome.
Older available versions (not actively maintained):
- Version 5.* supports PHP 7.2 and eAPI 1.8
- Version 4.* supports PHP 7.2 and eAPI 1.7
- Version 3.* supports PHP 7 and eAPI 1.6.
- Version 2.* supports PHP 7 and eAPI 1.5.
- Version 1.* supports PHP 5.6 and eAPI 1.5.
Installation
The best way to install slevomat/csob-gateway is using Composer:
Usage
First you have to initialize the payment in gateway and redirect customer to its interface.
WARNING: Please note, that all the prices are in hundredths of currency units. It means that when you wanna init a payment for 1.9 EUR, you should pass here the integer 190.
After customer returns from gateway, he is redirected to $returnUrl
where you have to process the payment.
Please refer to the CSOB documentation and learn what states you should to check, they are all available as PaymentStatus::S* constants.
Custom ApiClientDriver
API calls are made through ApiClientDriver
interface. Library contains two default implementations of driver - CurlDriver and GuzzleDriver. You can also
create your own driver by implementing the ApiClientDriver
interface, and passing it to ApiClient
constructor.
CurlDriver
communicates via curl
PHP extension, GuzzleDriver
uses guzzlehttp/guzzle library. If you want to use
GuzzleDriver you need to require guzzlehttp/guzzle
package in your composer.json.
All versions of csob-gateway with dependencies
ext-openssl Version *
ext-mbstring Version *