Answer the question
In order to leave comments, you need to log in
How to add custom fields to the Robokassa form?
I'm trying to implement Robokassa on a one-pager.
There is a payment code for the specified amount.
<?
// регистрационная информация (логин, пароль #1)
// registration info (login, password #1)
$mrh_login = "demo";
$mrh_pass1 = "password_1";
// номер заказа
// number of order
$inv_id = 0;
// описание заказа
// order description
$inv_desc = "Оплата заказа в Тестовом магазине ROBOKASSA";
// сумма заказа
// sum of order
$out_summ = "11.00";
// тип товара
// code of goods
$shp_item = 1;
// язык
// language
$culture = "ru";
// кодировка
// encoding
$encoding = "utf-8";
// формирование подписи
// generate signature
$crc = md5("$mrh_login:$out_summ:$inv_id:$mrh_pass1:shp_Item=$shp_item");
// HTML-страница с кассой
// ROBOKASSA HTML-page
print "<html><script language=JavaScript ".
"src='https://auth.robokassa.ru/Merchant/PaymentForm/FormMS.js?".
"MerchantLogin=$mrh_login&OutSum=$out_summ&InvId=$inv_id".
"&Description=$inv_desc&SignatureValue=$crc&shp_Item=$shp_item".
"&Culture=$culture&Encoding=$encoding'></script></html>";
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question