1. Go to this page and download the library: Download zayono/zayono-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$payment = $zayono->payments->retrieve('019e5eaf-cb99-7351-a6d5-c219e28534db');
if ($payment['status'] === 'success') {
// Deliver the order.
}
// Force a fresh check against the upstream aggregator:
$payment = $zayono->payments->verify('019e5eaf-cb99-7351-a6d5-c219e28534db');
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$log = new Logger('zayono');
$log->pushHandler(new StreamHandler('zayono.log'));
$zayono = new Zayono('zyn_test_xxxxx', logger: $log);
$zayono = new Zayono(
apiKey: 'zyn_test_xxxxx',
httpClient: $myPsr18Client,
);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.