I
I
ikCore2019-06-13 22:57:38
ROBOKASSA
ikCore, 2019-06-13 22:57:38

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>";

?>

When paying, the buyer enters an email for the check and a phone number.
Unfortunately, I did not find in the documentation how to make a form where the buyer additionally enters his full name and address?
How to make such a form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2019-06-13
@Adamos

https://docs.robokassa.ru/#1205

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question