Payment of a fixed amount.

The Merchant offers to the buyer an option to pay for a fixed price product in any currency acceptable by ROBOKASSA. If payment is made in any other currency, the Merchant will receive an equal amount in the currency it had previously chosen.

The ROBOKASSA Payment Button is placed at the payment page of the Merchant's website. After clicking this button, the buyer will be redirected to ROBOKASSA website, where he can choose the method of payment.

Basket
Кол-во (шт.) Цена (руб.) Сумма (руб.)

Техническая документация по ROBOKASSA 1 6,00 6,00
Техническая документация по Robo.market 1 5,00 5,00

11,00

Code samples:

using System; using System.Text; using System.Globalization; using System.Security.Cryptography; public partial class Init : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // регистрационная информация (логин, пароль #1) // registration info (login, password #1) string sMrchLogin = "demo"; string sMrchPass1 = "password_1"; // номер заказа // number of order int nInvId = 0; // описание заказа // order description string sDesc = "Оплата заказа в Тестовом магазине ROBOKASSA"; // сумма заказа // sum of order string sOutSum = "11.00"; // тип товара // code of goods string sShpItem = "1"; // язык // language string sCulture = "en"; // кодировка // encoding string sEncoding = "utf-8"; // формирование подписи // generate signature string sCrcBase = string.Format("{0}:{1}:{2}:{3}:shp_Item={4}", sMrchLogin, sOutSum, nInvId, sMrchPass1, sShpItem); MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); byte[] bSignature = md5.ComputeHash(Encoding.UTF8.GetBytes(sCrcBase)); StringBuilder sbSignature = new StringBuilder(); foreach (byte b in bSignature) sbSignature.AppendFormat("{0:x2}", b); string sCrc = sbSignature.ToString(); // HTML-страница с кассой // ROBOKASSA HTML-page // ltKassa is System.Web.UI.WebControls.Literal; ltKassa.Text = "<script language=JavaScript " + "src=\"https://auth.robokassa.ru/Merchant/PaymentForm/FormMS.js?" + "MerchantLogin=" + sMrchLogin + "&OutSum=" + sOutSum + "&InvId=" + nInvId + "&shp_Item=" + sShpItem + "&SignatureValue=" + sCrc + "&Description=" + sDesc + "&Culture=" + sCulture + "&Encoding=" + sEncoding + "\"></script>"; } }

Parameters:

  • MerchantLogin - merchant login in ROBOKASSA service/registration;
  • OutSum - the order price in the currency the Merchant has chosen through the administrative interface;
  • DefaultSum - the amount displayed in the form by default;
  • InvId - number of Order;
  • Description - order description;
  • Culture - the language used by the customer;
  • Encoding - HTML-code encoding returned by JavaScript;
  • SignatureValue - MD5 signature;
  • shp_Item - user parameter;
See our documentation to learn more about these parameters.
Задать вопрос