Skip to content

Faster Payments System (SBP)

Payment flow

The Faster Payments System payment flow contains the following steps:

  1. You initiate a payment request.
  2. The system submits a request to the payment method provider. The Faster Payments System generates a QR-code used to complete a payment.
  3. You get a response and redirect your customer to the received URL.
  4. Your customer gets the payment QR-code and completes the payment.
  5. You get a webhook notification about a payment status, if you send notification_url in the payment request.

This alternative payment method supports the following operations:


Payment

Request

Send a payment request with the following additional data:

Parameter Type Description
method object A section of the payment method information.
type
required
string sbp
Response

The payment response additionally contains the form section with the URL of a page with the QR-code. Redirect your customer to the URL received as a value of the form.action parameter.


Payment status query

Request

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

Response

The response contains the transaction status, a section of the payment method as well as other details related to the transaction according to the description of a transaction status query.


Refund

Request

To pay money back to the customer, send a refund request with the UID of the payment transaction.

Response

The response contains the status of the refund transaction as well as other relevant transaction details according to the description of a refund transaction.

PTP Integration option

Info

This integration option only supports RUB currency.

Payment

Payment flow

  1. The customer initiates the payment on the merchant's website.
  2. The merchant sends the payment request to Overpay.
  3. Overpay returns a URL to the payment page with SBP QR-code.
  4. The merchant redirects the customer to the received payment page URL.
  5. The customer scans the QR-code on the SBP page, selects the bank from the displayed list of the available banks, gets redirected to the corresponding bank application and completes the payment. Alternatively the customer scans the QR-code in their bank application and completes the payment.
  6. Overpay sends a webhook notification to the merchant.
  7. The merchant displays the payment status to the customer.
Request

Send a payment request with the following additional data:

Parameter Type Description
request object
return_url * required
string A URL to return the customer to when the transaction is completed.
method object A section of the payment method information.
type
* required
string sbp
customer object A section of information about the customer.
first_name * required
string The customer's first name.
last_name * required
string The customer's last name.
email * required
string The customer's email address.
phone* required
string The customer's phone number with the country code and + sign.
Request example
{
  "request": {
    "amount": 100000,
    "currency": "RUB",
    "description": "description",
    "return_url": "https://merchant.ltd/return",
    "customer": {
      "first_name": "John",
      "last_name": "Doe",
      "phone": "+111111111111",
      "email": "example@example.com"
    },
    "method": {
      "type": "sbp"
    }
  }
}
Response

The response will contain form.action parameter with the link to the provider's website with the QR-code for making the payment.

Response example
{
  "transaction": {
    "uid": "debf8377-3546-462e-b372-5c3a18838de5",
    "type": "payment",
    "status": "pending",
    "amount": 100000,
    "currency": "RUB",
    "description": "description",
    "created_at": "2024-04-03T19:55:38Z",
    "updated_at": "2024-04-03T19:55:39Z",
    "method_type": "sbp",
    "receipt_url": "https://backoffice.overpay.io/customer/transactions/debf8377-3546-462e-b372-5c3a18838de5/8190f452c202e3d6e8ae1bf654bad55fae5a74143f7fed92f2be7879664ccb47",
    "payment": {
      "status": "pending",
      "gateway_id": 3878,
      "ref_id": "601318084",
      "message": "Transaction was initialized."
    },
    "sbp": {
      "type": "sbp"
    },
    "customer": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "example@example.com",
      "phone": "+111111111111",
      "ip": null
    },
    "manually_corrected_at": null,
    "message": "Transaction was initialized.",
    "test": false,
    "billing_address": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "example@example.com",
      "phone": "+111111111111"
    },
    "additional_data": {
      "payment_method": {
        "type": "alternative"
      }
    },
    "gateway": {
      "iframe": true
    },
    "form": {
      "action": "https://qr.nspk.ru/AD100001EB6TL7KF8CCAD8DD0HLMCS5V?type=02&bank=100000000143&sum=100000&cur=RUB&crc=1479",
      "method": "GET",
      "fields": []
    }
  }
}

Payout

Payout flow

  1. The merchant sends the payout request to Overpay along with the bank_code.
  2. Overpay sends the response with the pending transaction status.
  3. Overpay sends a webhook notification to the merchant with the payout status.
Request

Send a payout request with the following additional data:

Parameter Type Description
method object A section of the payment method information.
type * required
string sbp
account_number * required
string The payout recipient's phone number with the + sign.
bank_code * required
string The bank ID of the payout recipient. Contact the Tech Support Team or your account manager to get the list of the available banks and the corresponding bank codes.
customer object A section of information about the customer.
first_name string The customer's first name.
last_name string The customer's last name.
email string The customer's email address.
phone string The customer's phone number.
Request example
{
  "request": {
    "amount": 20000,
    "currency": "RUB",
    "description": "description",
    "test": true,
    "method": {
      "type": "sbp",
      "account_number": "+123456789123",
      "bank_code": "100000000202"
    }
  }
}
Response
Response example
{
  "transaction": {
    "uid": "2757482e-4490-4c8c-a223-f554a21dc370",
    "type": "payout",
    "status": "pending",
    "amount": 20000,
    "currency": "RUB",
    "description": "description",
    "created_at": "2024-04-04T13:40:40Z",
    "updated_at": "2024-04-04T13:40:40Z",
    "manually_corrected_at": null,
    "method_type": "sbp",
    "receipt_url": "https://backoffice.overpay.io/customer/transactions/2757482e-4490-4c8c-a223-f554a21dc370/1aa3bd868381ee7766b02261b03abd12526e30f85a194938719e5ab4c28e2b28",
    "payout": {
      "status": "pending",
      "gateway_id": 3878,
      "message": "Transaction was initialized.",
      "bank_code": 100
    },
    "sbp": {
      "type": "sbp"
    },
    "customer": {
      "email": null,
      "ip": null
    },
    "message": "Transaction was initialized.",
    "test": true,
    "billing_address": {},
    "additional_data": {
      "payment_method": {
        "type": "alternative"
      }
    }
  }
}