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



Auto-Payments

The functionality of auto payments allows you to make the next payment without re-entering the card details.



Initial Payment Scenario (REST)

One-phase payment Two-phase payment
1 The payer chooses goods or services on the merchant website and picks bank card as a payment option.
2

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • returnUrl – the URL to which the payer will be redirected if payment is successful;
  • failUrl – the URL to which the payer will be redirected if payment is unsuccessful.

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • amount – amount to be debited;
  • orderNumber – order number in the store system;
  • returnUrl – the URL to which the payer will be redirected if payment is successful;
  • failUrl – the URL to which the payer will be redirected if payment is unsuccessful.
3

Payment gateway returns a response which, among others, includes the following parameters:

  • orderId – unique identifier of the order in the payment system;
  • formUrlURL of the form for entering card details (the payment form).
4 Merchant passes to payer the URL specified in formUrl parameter of the response.
5 Payer's browser opens a form for entering card details. The payer fills in the received form and sends the data to the payment gateway server.
6

Further actions depend on whether the customer's card supports 3-D Secure or not.

  • 3-D Secure not supported – go to next step;
  • 3-D Secure supported – the Payment Gateway redirects the payer to authentication form (in most cases, this is a page where SMS code must be entered) stored on the Access Control Server which belongs to issuing bank. If authentication is successful, next step is carried out.
7 Payment gateway debits funds from payer's account. Payment gateway holds (reserves) funds on payer's account.
8 After the payment is carried out, the Payment Gateway redirects the Customer to the return URL (the return URL that is passed by the Store in request for order registration).
9 Customer's browser requests from the Store the payment result page.
10

The merchant requests from payment gateway the order payment status by passing a unique identifier that was received upon order registration in orderId parameter:

11 The payment gateway returns payment status and the merchant passes to the customer's browser the page with payment result. In this case, in the response, the payment gateway returns the binding identifier in the payment gateway – bindingId.
12 Not applicable

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

13 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:

  • getOrderStatusExtended.do. In this case, in the response, the payment gateway returns the binding identifier in the payment gateway – bindingId.

There is an option to set up callback notifications about order status instead of sending the getOrderStatusExtended request. These notifications will be sent to you automatically after the order status changes.



Scenario of executing an auto-payment (REST)

One-phase payment Two-phase payment
1

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;

The value AUTO_PAYMENT must be passed in features block.

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • amount – amount to be debited;
  • orderNumber – order number in the store system;

The value AUTO_PAYMENT must be passed in features block.

2

Payment gateway returns a response which, among others, includes the following parameters:

  • orderId – unique identifier of the order in the payment system;

In the process of making an auto payment, it is not necessary to use the received parameter formUrl.

3 The store sends a request for payment by binding: paymentOrderBinding.do.
4 Payment gateway debits funds from payer's account. Payment gateway holds (reserves) funds on payer's account.
5

The merchant requests from payment gateway the order payment status by passing a unique identifier that was received upon order registration in orderId parameter:

6 The payment gateway returns the payment status.
7 Not applicable

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

8 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:

There is an option to set up callback notifications about order status instead of sending the getOrderStatusExtended request. These notifications will be sent to you automatically after the order status changes.



Initial Payment Scenario (WSDL)

One-phase payment Two-phase payment
1 The payer chooses goods or services on the merchant website and picks bank card as a payment option.
2

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • returnUrl – the URL to which the payer will be redirected if payment is successful;
  • failUrl – the URL to which the payer will be redirected if payment is unsuccessful.

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • amount – amount to be debited;
  • orderNumber – order number in the store system;
  • returnUrl – the URL to which the payer will be redirected if payment is successful;
  • failUrl – the URL to which the payer will be redirected if payment is unsuccessful.
3

Payment gateway returns a response which, among others, includes the following parameters:

  • orderId – unique identifier of the order in the payment system;
  • formUrlURL of the form for entering card details (the payment form).
4 Merchant passes to payer the URL specified in formUrl parameter of the response.
5 Payer's browser opens a form for entering card details. The payer fills in the received form and sends the data to the payment gateway server.
6

Further actions depend on whether the customer's card supports 3-D Secure or not.

  • 3-D Secure not supported – go to next step;
  • 3-D Secure supported – the Payment Gateway redirects the payer to authentication form (in most cases, this is a page where SMS code must be entered) stored on the Access Control Server which belongs to issuing bank. If authentication is successful, next step is carried out.
7 Payment gateway debits funds from payer's account. Payment gateway holds (reserves) funds on payer's account.
8 After the payment is carried out, the Payment Gateway redirects the Customer to the return URL (the return URL that is passed by the Store in request for order registration).
9 Customer's browser requests from the Store the payment result page.
10

The merchant requests from payment gateway the order payment status by passing a unique identifier that was received upon order registration in orderId parameter:

11 The payment gateway returns payment status and the merchant passes to the customer's browser the page with payment result. In this case, in the response, the payment gateway returns the binding identifier in the payment gateway – bindingId.
12 Not applicable

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

13 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:

  • getOrderStatusExtended. In this case, in the response, the payment gateway returns the binding identifier in the payment gateway – bindingId.

There is an option to set up callback notifications about order status instead of sending the getOrderStatusExtended request. These notifications will be sent to you automatically after the order status changes.



Scenario of executing an auto-payment (WSDL)

One-phase payment Two-phase payment
1

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;

The value AUTO_PAYMENT must be passed in features block.

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

Among others, the following parameters are passed in the request:

  • clientId – unique identifier of the Customer in the store system;
  • amount – amount to be debited;
  • orderNumber – order number in the store system;

The value AUTO_PAYMENT must be passed in features block.

2

Payment gateway returns a response which, among others, includes the following parameters:

  • orderId – unique identifier of the order in the payment system;

You do not need to use the received formUrl parameter during the auto payment process.

3 The store sends a request for payment by binding: paymentOrderBinding.
4 Payment gateway debits funds from payer's account. Payment gateway holds (reserves) funds on payer's account.
5

The merchant requests from payment gateway the order payment status by passing a unique identifier that was received upon order registration in orderId parameter:

6 The payment gateway returns the payment status.
7 Not applicable

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

8 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:

There is an option to set up callback notifications about order status instead of sending the getOrderStatusExtended request. These notifications will be sent to you automatically after the order status changes.

{(rater>id=rater8_3|name=Was this page helpful?|type=vote)}