Инструменты страницы
Entering bonus point amount on payment page
Main process:
- describes the main payment method (payment using a bank card and «Sberbank Spasibo»/«SberMiles» bonuses),
- does not take into account negative scenarios (error handling).
Step | Description |
---|---|
1 | The client forms an order cart on the store's website. |
2 | After the order has been confirmed by the customer,the store registers the order in RBS. For registration, such parameters are used as the amount of the debiting, the currency of the debiting, the order number in the store's system, the customer's return URL. |
3 | Upon registration request, the payment gateway returns a unique order identifier in the payment system and the URL to which the user must be redirected to receive the payment form. |
4 | The store system sends to the client's browser redirect to the URL obtained in step 3. |
5 | The customer's browser opens the URL. |
6 | The client's browser receives a payment form as a page at the specified URL. |
7 | The user fills out the received form. |
8 | As soon as the client fills in the card number field, the payment gateway checks against the BIN table whether the card participates in the loyalty program. The payment gateway requests in the loyalty system the maximum and minimum allowable amounts of bonus points to be debited for this order. |
9 | The loyalty system determines the maximum and minimum allowable amounts of bonus points to be debited for a given order. |
10 | The payment gateway receives a response with the maximum and minimum allowable amounts of bonus points to be debited for this order. |
11 | On the payment page, a block is displayed for entering the amount of points to be debited. The possible amount for input is limited by the range calculated taking into account the data obtained in the previous step. |
12 | The client enters the amount of bonus points to be debited and ticks the «Pay with Spasibo» checkbox. After filling in all the required fields on the payment page, the client clicks the «Pay» button and the data is sent to the payment gateway. |
13 | The payment gateway sends a request to the bonus service to deduct bonus points. |
14 | The bonus service deducts bonus points. |
15 | The bonus service returns the results of the bonus points debiting to the payment gateway. |
16 | The payment gateway reduces the amount of the required additional payment for the order by the amount of the bonus debiting performed and makes the payment (debiting) using a bank card. The minimum amount of payment by bank card is 100 rubles. If it was not possible to debit funds from the card, the operation of writing off bonuses is automatically canceled. |
17 | After the payment is made, the payment gateway sends the return URL to the client's browser (specified earlier when registering the order with the store). |
18 | The Customer browser requests from the store a page with the payment results. |
19 | (optional) The store system requests the Payment Gateway for the order payment status (using the internal number in the payment system). |
20 | (optional) Payment gateway returns payment status. |
21 | The store system sends a page with the payment results to the client's browser. |
If, after the 20 minutes allotted for payment have elapsed, the client does not return from the payment gateway to the store's payment results page (to the client's return URL), then the payment is considered unsuccessful.
Note: If the purchase is paid with a card participating in the «Sberbank-Spasibo»/«SberMiles» program, the payment gateway transfers the purchase amount to the «Sberbank-Spasibo»/«SberMiles» system for the subsequent accrual of bonuses.