Страница тестовой оплаты

<?php
$m_shop = ‘1640335669’;
$m_orderid = ‘1’;
$m_amount = number_format(100, 2, ‘.’, ”);
$m_curr = ‘USD’;
$m_desc = base64_encode(‘Test’);
$m_key = ‘U7qaPVOPtVxDDPpc’;

$arHash = array(
$m_shop,
$m_orderid,
$m_amount,
$m_curr,
$m_desc
);

/*
$arParams = array(
‘success_url’ => ‘http://evgenik.ru/new_success_url’,
//’fail_url’ => ‘http://evgenik.ru/new_fail_url’,
//’status_url’ => ‘http://evgenik.ru/new_status_url’,
‘reference’ => array(
‘var1’ => ‘1’,
//’var2′ => ‘2’,
//’var3′ => ‘3’,
//’var4′ => ‘4’,
//’var5′ => ‘5’,
),
//’submerchant’ => ‘mail.com’,
);

$key = md5(‘Key for encryption additional parameters’.$m_orderid);

$m_params = @urlencode(base64_encode(openssl_encrypt(json_encode($arParams), ‘AES-256-CBC’, $key, OPENSSL_RAW_DATA)));

$arHash[] = $m_params;
*/

$arHash[] = $m_key;

$sign = strtoupper(hash(‘sha256’, implode(‘:’, $arHash)));
?>
<form method=”post” action=”https://payeer.com/merchant/”>
<input type=”hidden” name=”m_shop” value=”<?=$m_shop?>”>
<input type=”hidden” name=”m_orderid” value=”<?=$m_orderid?>”>
<input type=”hidden” name=”m_amount” value=”<?=$m_amount?>”>
<input type=”hidden” name=”m_curr” value=”<?=$m_curr?>”>
<input type=”hidden” name=”m_desc” value=”<?=$m_desc?>”>
<input type=”hidden” name=”m_sign” value=”<?=$sign?>”>
<?php /*
<input type=”hidden” name=”form[ps]” value=”2609″>
<input type=”hidden” name=”form[curr[2609]]” value=”USD”>
*/ ?>
<?php /*
<input type=”hidden” name=”m_params” value=”<?=$m_params?>”>
<input type=”hidden” name=”m_cipher_method” value=”AES-256-CBC”>
*/ ?>
<input type=”submit” name=”m_process” value=”send” />
</form>

‘http://evgenik.ru/new_success_url’, //’fail_url’ => ‘http://evgenik.ru/new_fail_url’, //’status_url’ => ‘http://evgenik.ru/new_status_url’, ‘reference’ => array( ‘var1’ => ‘1’, //’var2′ => ‘2’, //’var3′ => ‘3’, //’var4′ => ‘4’, //’var5′ => ‘5’, ), //’submerchant’ => ‘mail.com’, ); $key = md5(‘Key for encryption additional parameters’.$m_orderid); $m_params = @urlencode(base64_encode(openssl_encrypt(json_encode($arParams), ‘AES-256-CBC’, $key, OPENSSL_RAW_DATA))); $arHash[] = $m_params; */ $arHash[] = $m_key; $sign = strtoupper(hash(‘sha256’, implode(‘:’, $arHash))); ?>
*/ ?> “> */ ?>