RM
Size: a a a
RM
RM
RM
RM
PC
RM
PC
PC
RM
RM
PC
RM
PC
RM
function liqpay_Form($amount, $id, $language, $description)
{
$data = '{
"public_key": "",
"version":"3",
"action":"pay",
"amount":"' . $amount . '",
"language":"' . $language . '",
"currency":"UAH",
"description":"' . $description . '",
"order_id":"' . $id . '",
"server_url":"' . home_url() . '/wp-json/payment/v1/api",
"sandbox":"0"
}';
$private_key = 'Cp0CyKoPfabkef3E1jBqKcVT8w98S';
$data = base64_encode($data);
$signature = $private_key . $data . $private_key;
$signature = base64_encode(sha1($signature, 1));
$result = [
data => $data,
signature => $signature
];
return $result;
}
PC
RM
PC
PC
RM