require_once "vendor/autoload.php";
//Создание платежа
use Kvash\Aaio\Create;
$url = new Create($merchatid, $orderid, $amount, $secretkey1, $currency, $lang);
$url->getUrl(); // Готовая ссылка на оплату
//Проверка подписи
use Kvash\Aaio\Webhook;
$url = new WebHook($_POST['merchant_id'], $_POST['order_id'], $_POST['amount'], $secretkey2, $_POST['sign'], $_POST['currency']);
if($url->check() === false){
die("error sign");
}
//Оплата прошла успешно, можно проводить операцию.
-
Notifications
You must be signed in to change notification settings - Fork 0
apnem19/PHP_SDK_AAIO
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published