Answer the question
In order to leave comments, you need to log in
Kar connect Robokassa to your button on html-landing page?
Kar connect Robokassa to your button on html-landing page? There is a landing: http://againyouth.rf. How to connect a robokassa script to the "Buy" button?
There is a script code:
<?
// регистрационная информация (Идентификатор магазина, пароль #1)
// registration info (Merchant ID, 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 = "8.96";
// тип товара
// code of goods
$shp_item = 1;
// предлагаемая валюта платежа
// default payment e-currency
$in_curr = "BANKOCEAN2R";
// язык
// language
$culture = "ru";
// кодировка
// encoding
$encoding = "utf-8";
// Адрес электронной почты покупателя
// E-mail
$Email = "[email protected]";
// Срок действия счёта
// Expiration Date
$ExpirationDate = "2015-07-30T12:00";
// Валюта счёта
// OutSum Currency
$OutSumCurrency = "USD";
// формирование подписи
// generate signature
$crc = md5("$mrh_login:$out_summ:$inv_id:$OutSumCurrency:$mrh_pass1:Shp_item=$shp_item");
// форма оплаты товара
// payment form
print
"<html>".
"<form action='https://auth.robokassa.ru/Merchant/Index.aspx' method=POST>".
"<input type=hidden name=MrchLogin value=$mrh_login>".
"<input type=hidden name=OutSum value=$out_summ>".
"<input type=hidden name=InvId value=$inv_id>".
"<input type=hidden name=Desc value='$inv_desc'>".
"<input type=hidden name=SignatureValue value=$crc>".
"<input type=hidden name=Shp_item value='$shp_item'>".
"<input type=hidden name=IncCurrLabel value=$in_curr>".
"<input type=hidden name=Culture value=$culture>".
"<input type=hidden name=Email value=$Email>".
"<input type=hidden name=ExpirationDate value=$ExpirationDate>".
"<input type=hidden name=OutSumCurrency value=$OutSumCurrency>".
"<input type=submit value='Оплатить'>".
"</form></html>";
?>
<!-- m_editable region-id="editable-static-tag-U1128" template="index.html" data-type="image" -->
<div class="clip_frame clearfix grpelem" id="u1128" data-muse-uid="U1128" data-muse-type="img_frame"><!-- image -->
<div id="u1128_clip">
<img class="position_content" id="u1128_img" src="images/btn.png" alt="" width="402" height="159" data-muse-src="images/btn.png"/>
</div>
</div>
<!-- /m_editable -->
Answer the question
In order to leave comments, you need to log in
Hello,
do you have a form?
<form action='https://auth.robokassa.ru/Merchant/Index.aspx' method=POST>
etc., the fields are all hidden. Just add to <input type=submit value='Оплатить'>
drawing<img class="position_content" id="u1128_img" src="images/btn.png" alt="" width="402" height="159" data-muse-src="images/btn.png"/>
<div id="u1128_clip">
- make the form, and then - the button, close the form. and you can also add an id to the form, and do this:
requires jquery
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question