PHP utils for pays.cz integration.
PHP utils for pays.cz integration., (*1)
composer require axima/payment-gate
use Axima\PaymentGate\Utils; $link = Utils::getPaymentLink($merchantId, $shopId, $currency, $amount, $merchantOrderNumber, $email);
To validate data on confirmation, you can use helper method:, (*2)
if (!Utils::validateConfirmData($password)) { // error payment } else { // success payment }
If you already have parsed data from $_GET
or you are using some framework, which provides data in different way, you can pass them as second parameter (but keep the keys same as in $_GET
):, (*3)
Utils::validateConfirmData($password, $data)
Please use GitHub issue tracker / pull requests., (*4)