Skip to content

SberPay

RC Integration option

Info

This integration option supports RUB and KGS currencies.

Payment

Payment flow

  1. The customer initiates the payment on the merchant's website.
  2. The merchant sends the payment request to 2can.
  3. 2can returns a URL to the page to which the customer needs to be redirected.
  4. The merchant redirects the customer to the received payment page URL.
  5. The link displays the QR code. The customer scans the QR code and completes the payment in the bank application within 10 minutes.
  6. 2can sends a webhook notification to the merchant. The merchant may also request the payment status from 2can with the status query.
  7. The merchant displays the payment status to the customer.
Request

Send a payment request with the following additional data:

object
return_url
required
string
A URL to return the customer to when the transaction is completed.
object
A section of the payment method information.
type
required
string
sber_pay_redirect
object
A section of information about the customer.
email
required
string
The customer's email address.
first_name
string
The customer's first name.
last_name
string
The customer's last name.
middle_name
string
The customer's middle name.
phone
string (20)
The customer's phone number with country code.
external_id
string (64)
The customer's identifier in the merchant's system.
Request example
{
    "request": {
        "amount": 200,
        "currency": "RUB",
        "description": "description",
        "return_url": "https://your_return_url.com",
        "method": {
            "type": "sber_pay_redirect"
        },
        "customer": {
            "first_name": "John",
            "middle_name": "Robert",
            "last_name": "Doe",
            "external_id": "r123",
            "phone": "+79123456789",
            "email": "email.name@example.com"

        }
    }
}
Response

Redirect your customer to the URL received as the value of the form.action parameter.

Response example
{
    "transaction": {
        "uid": "ddf47302-ae89-457b-9b88-d6f59cb2419e",
        "type": "payment",
        "status": "pending",
        "amount": 200,
        "currency": "RUB",
        "description": "description",
        "created_at": "2026-03-06T08:13:49Z",
        "updated_at": "2026-03-06T08:13:50Z",
        "method_type": "sber_pay_redirect",
        "receipt_url": "https://ecom-backoffice.2can.ru/customer/transactions/ddf47302-ae89-457b-9b88-d6f59cb2419e/8f87708c32b7589aaec6486e8a644d77d1761baed9bb8c1360ee51671a85c953",
        "payment": {
            "status": "pending",
            "gateway_id": 6275,
            "ref_id": "54718",
            "message": "Transaction was initialized."
        },
        "sber_pay_redirect": {
            "type": "sber_pay_redirect"
        },
        "customer": {
            "email": "email.name@example.com",
            "phone": "+79123456789",
            "last_name": "Doe",
            "first_name": "John",
            "external_id": "r123",
            "middle_name": "Robert",
            "ip": null
        },
        "manually_corrected_at": null,
        "version": 1,
        "message": "Transaction was initialized.",
        "test": false,
        "billing_address": {
            "email": "email.name@example.com",
            "phone": "+00123456789",
            "last_name": "Doe",
            "first_name": "John",
            "middle_name": "Robert"
        },
        "additional_data": {
            "payment_method": {
                "type": "alternative"
            }
        },
        "smart_routing_verification": {
            "status": "successful"
        },
        "gateway": {
            "iframe": true
        },
        "form": {
            "action": "link-to-payment-page-with-qr-code",
            "fields": [],
            "method": "GET"
        }
    }
}