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



Pay with Samsung Pay Web (payment page is on the merchant side)

If, in case of payment with Samsung Pay, the payment page is located on the merchant's side, the interaction scheme looks as follows.

One-phase payment Two-phase payment
1 The buyer places an order on the merchant's website
2

The merchant sends an order registration request to the payment gateway:

The merchant sends an order registration with pre-authorization request to the payment gateway:

3 The payment gateway registers the order and in response sends the identifier of the created order to the merchant
4 The store's system redirects the buyer to the payment page, where the payment form opens for him.
5 Customer chooses to pay using Samsung Pay Web
6 The merchant sends a payment request via Samsung Pay Web to the payment gateway: REST interface (payment.do).
7 The payment gateway communicates with Samsung Pay to get data to send a response to the merchant.
8 The payment gateway sends a response to the payment request via Samsung Pay.
9 The payment form redirects the buyer to the Samsung Pay page. JavaScript-scenario is used here, which calls connect function, where data from the response should be sent to the payment request via Samsung Pay.
10 Samsung Pay informs the buyer about the need to authenticate, after which the buyer authenticates on their mobile device, selects a card for payment and confirms the payment.
11 Samsung Pay communicates with the payment gateway.
12 The customer is shown a payment form with the result of the payment
13

The Merchant requests from the Payment Gateway the status of order payment:

14 Not applicable

To debit funds from the Customer's account, the Merchant needs to send to the Payment Gateway an order completion request:

15 Not applicable

The payment gateway returns the result of processing the request. The order status is not returned. To get the status of the order, an order status request should be sent to the gateway: