Пример формы на PHP

Создание заказа

<?php
$merchant_id = ''; // ID Вашего магазина
$amount = 10.54; // Сумма к оплате
$currency = 'RUB'; // Валюта заказа
$secret = ''; // Секретный ключ №1 из настроек магазина
$order_id = 'php_form_order_1'; // Идентификатор заказа в Вашей системе
$sign = hash('sha256', implode(':', [$merchant_id, $amount, $currency, $secret, $order_id]));
$desc = 'Order Payment'; // Описание заказа
$lang = 'ru'; // Язык формы
?>
<form method="POST" action="https://aaio.so/merchant/pay">
	<input type="hidden" name="merchant_id" value="<?php echo $merchant_id ?>">
	<input type="hidden" name="amount" value="<?php echo $amount ?>">
	<input type="hidden" name="currency" value="<?php echo $currency ?>">
	<input type="hidden" name="order_id" value="<?php echo $order_id ?>">
	<input type="hidden" name="sign" value="<?php echo $sign ?>">
	<input type="hidden" name="desc" value="<?php echo $desc ?>">
	<input type="hidden" name="lang" value="<?php echo $lang ?>">
	<input type="submit" name="pay" value="Пополнить">
</form>

Last updated