Download the PHP package paysys/cardpay without Composer
On this page you can find all versions of the php package paysys/cardpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cardpay
PaySys\CardPay
Library for implement CardPay gateway (v1.5 with HMAC & ECDSA) from Tatra Banka in Nette framework.
Requirements
Requires PHP 7.1 or later.
Use universal libraty PaySys\PaySys.
Installation
The best way to install Unique is use Composer package PaySys/CardPay
.
Configuration
Events
Object
Event | Parameters | Description |
---|---|---|
$onBeforePayRequest | \PaySys\PaySys\IPayment $payment | Occurs before pay request |
$onPayRequest | \PaySys\PaySys\IPayment $payment | Occurs on pay request |
Service
Event | Parameters | Description |
---|---|---|
$onResponse | array $parameters | Occurs on response from bank |
$onSuccess | array $parameters | Occurs on success payment response from bank |
$onFail | array $parameters | Occurs on fail payment response from bank |
$onError | array $parameters, \PaySys\PaySys\Exception $e | Occurs on damaged response from bank |
Example
Generating payment button
Set .
Button need service. Use DI generated factory for getting configured component.
Now set event on for redirect to CardPay gateway. Signed redirect URL is genereated by service .
Process payment response
Event-driven processing
Default is Bank response routed to included presenter . In this case are automatic called events on service .
For processing payment by events use for example Kdyby\Events.
Own presenter
Too it's possible write own for hnadling payment. In this case are events called same as before example.
Now just add route to configuration:
Exceptions
All versions of cardpay with dependencies
paysys/paysys Version ^0.1
nette/application Version >=2.3
nette/di Version >=2.4
nette/http Version >=2.3
nette/utils Version >=2.4