axima / payment-gate
PHP utils for pays.cz integration.
Installs: 1 200
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 1
This package is not auto-updated.
Last update: 2024-11-15 00:17:49 UTC
README
PHP utils for pays.cz integration.
Installation
composer require axima/payment-gate
Usage
use Axima\PaymentGate\Utils;
$link = Utils::getPaymentLink($merchantId, $shopId, $currency, $amount, $merchantOrderNumber, $email);
To validate data on confirmation, you can use helper method:
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
):
Utils::validateConfirmData($password, $data)
Bug reports, feature requests
Please use GitHub issue tracker / pull requests.