Beispiel #1
0
<?php

$ref = pbLib::getCheckRef($data);
$payId = pbLib::getPayId($data);
if ($ref && $payId && $pbAdapter->confirmPayment($ref, $payId)) {
    $pbXml = pbXml::data('', $schema, 'Gateway', $ref);
}
if (!$pbXml) {
    $pbXml = pbXml::error(99, 'Помилка підтвердження платежу');
}
Beispiel #2
0
<?php

$ref = pbLib::getCheckRef($data);
$res = $pbAdapter->cancelPayment($ref);
if ($res) {
    $pbXml = pbXml::data('', $schema, 'Gateway', $ref);
} else {
    $pbXml = pbXml::error(99, 'Помилка скасування платежу');
}