You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Описание

Параметры, передаваемые в форме выставления счета описаны в документации протокола IntellectMoney: Протокол приема платежей Intellectmoney.

Обязательными параметрами являются:

Важный параметр:

  • user_email - email плательщика, если данный параметр не передан или передан не корректно, платежная система предложит покупателю ввести email.

Пример создания формы

Исходные параметры:

  1. EshopId = 456093
  2. recipientAmount = 10.00
  3. recipientCurrency = RUB
  4. orderId = 1
  5. serviceName = Оплата заказа 1
  6. secrcetKey = mySecretKey
  7. recurringType = Activate
  8. user_email = test@mail.ru

В примере используется сочетание языка программирования - PHP и языка разметки - HTML

<?php
    $eshopId = "456093";
    $recipientAmount=10.00;
    $recipientCurrency = "RUB";
    $orderId=1;
    $serviceName='Оплата заказа 1';
    $secretKey = 'mySecretKey';
    $recurringType = "Activate";
    $email = "test@mail.ru";
    
    $hash_str = md5($eshopId."::".$orderId."::".$serviceName."::".$recipientAmount."::".$recipientCurrency."::".$recurringType."::".$secretKey);
    $hash = md5($hash_str);
?>
<form action='https://merchant.intellectmoney.ru/ru/' enctype="application/x-www-form-urlencoded">
    <input id='eshopId' type='hidden' value='<?=$eshopId?>' name='eshopId'/>
    <input id='orderId' type='hidden' value='<?=$orderId?>' name='orderId'/>
    <input id='serviceName' type='hidden' value='<?=$serviceName?>' name='serviceName'/>
    <input id='recipientAmount' type='hidden' value='<?=$recipientAmount?>' name='recipientAmount'/>
    <input type='hidden' value='<?=$recipientCurrency?>' name='recipientCurrency'/>
    <input id='user_email' type='hidden' value='<?=$email?>' name='email'/>
    <input id='recurringType' type='hidden' value='<?=$recurringType?>' name='recurringType'/>
    <input type='hidden' name='hash' value="<?=$hash?>" />
    <input type=submit value='createInvoce' /><br/>
</form>
  • No labels