Skip to content

SmartPay

Payment flow

The SmartPay payment flow contains the following steps:

  1. You initiate a payment request.
  2. You redirect your customer to the URL received in the response to your payment request.
  3. Your customer completes the payment on the provider's payment page.
  4. You get a webhook notification about a payment status, if you send notification_url in the payment request.

This integration option supports the following operations:


Payment

Request

Send a payment request with the following additional parameters:

Parameter Type Description
amount * required
integer Specify the parameter value as 0
method object A section of the payment method.
type * required
string smart_pay
user_id * required
string The customer's ID.
user_name * required
string The customer's name.
customer object A section of the customer's details.
first_name * required
string The customer's first name.
last_name * required
string The customer's last name.
Response

The payment response additionally contains the smart_pay section with the name of the payment method, as well as the form section with the URL of the provider's payment page. Redirect your customer to the URL received as a value of the form.action parameter.

Warning

The amount parameter value in the webhook notification and in the response to the transaction status query will be different from the value sent in the request and will equal the amount of the transaction that the customer made on the provider's payment page.


Payment status query

To check a status of the payment, send a transaction status query.