Инструменты страницы



Request for order registration with pre-authorization

assing bonus point amount in order registration request

The number of bonus points to be debited can be transferred in a request for registration of an order with pre-authorization. The payment page of the store must support the display of the number of points to be debited. In this case, when registering an order, in addition to the standard amount in money to be debited (in the amount parameter), an additional parameter must be passed:

  • sbrf_spasibo:amount_bonus – for the Sberbank Spasibo loyalty program;
  • sbrf_sbermiles:amount_bonus – for the SberMiles loyalty program.

The parameter value contains the amount of bonuses to be debited in kopecks.

For example:

The total order amount is 200 rubles. To pay half of the amount with money and half with bonus points, you must pass the following parameter values:

  • amount = 10000 (to debit 100 rubles from the client's bank card),
  • sbrf_spasibo:amount_bonus = 10000 (to debit 100 bonus points from the client's bonus account).

OR

  • amount = 10000 (to debit 100 rubles from the client's bank card),
  • sbrf_sbermiles:amount_bonus = 10000 (to debit 100 bonus points from the client's bonus account).

In other parameters, the request is similar to the standard order registration request.

Request example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant">
   <soapenv:Header/>
   <soapenv:Body>
      <mer:registerOrder>
         <order bindigId=" " merchantOrderNumber="057a98qerf8kfqdarf" description=" " amount="240000" currency=" " language=" " pageView=" " sessionTimeoutSecs="5400" expirationDate="2016-09-08T14:14:14">
            <returnUrl>https://server/applicaton_context/finish.html</returnUrl>
            <params name="sbrf_spasibo:amount_bonus" value="1030"/>
         </order>
      </mer:registerOrder>
   </soapenv:Body>
</soapenv:Envelope>

Response example:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns1:registerOrderResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant">
         <return orderId="0271b766-1323-4b82-a7f5-1d34e4f9f3aa" errorCode="0" errorMessage="Success">
            <formUrl>https://3dsec.sberbank.ru/payment/merchants/rbs/payment_ru.html?mdOrder=0271b766-1323-4b82-a7f5-1d34e4f9f3aa</formUrl>
         </return>
      </ns1:registerOrderResponse>
   </soap:Body>
</soap:Envelope>

Entering bonus point amount on payment page

In order to provide the client with the opportunity to specify the number of bonus points on the payment page, the order registration request should NOT contain a parameter with the number of bonuses to be debited. The payment page of the store must support the input of the amount of bonuses.

In this case, the request is similar to order registration request.