kvash/aaio

0.3 2024-02-11 19:27 UTC

This package is auto-updated.

Last update: 2024-09-19 03:17:37 UTC


README

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("错误签名");
}

// 支付成功,可以执行操作。