SberBank Online
This payment method is no longer supported. To accept payments via SberBank, use the SberPay payment method. If you already accept payments via SberBank Online, you’ll be switched to SberPay automatically.
 
Specifics
 
Integration scenarios
Ready-made solutions:
Manual integration:
 
Payment with confirmation at the SberBank Online website
Step 1. Create a payment  with the 
sberbank
type in the 
payment_method_data
object, and the 
redirect
type as well as the URL of a page on your side for redirecting the user after the payment (in the 
return_url
parameter) in the 
confirmation
object.
Example of request
cURL
PHP
Python
curl https://api.yookassa.ru/v3/payments \
  -X POST \
  -u <Shop ID>:<Secret Key> \
  -H 'Idempotence-Key: <Idempotence Key>' \
  -H 'Content-Type: application/json' \
  -d '{
        "amount": {
          "value": "2.00",
          "currency": "RUB"
        },
        "payment_method_data": {
          "type": "sberbank"
        },
        "confirmation": {
          "type": "redirect",
          "return_url": "https://www.merchant-website.com/return_url"
        },
        "description": "Order No. 72"
      }'
Step 2. Redirect the user to the YooMoney’s payment confirmation page (you will receive the URL in the 
confirmation_url
parameter).
Example of a created payment object
JSON
{
  "id": "22c5d21b-000f-5000-8000-1ff9ebc96611",
  "status": "pending",
  "paid": false,
  "amount": {
    "value": "2.00",
    "currency": "RUB"
  },
  "confirmation": {
    "type": "redirect",
    "confirmation_url": "https://yoomoney.ru/checkout/payments/sberbank?orderId=25119875-000f-5000-8000-121af557148d"
  },
  "created_at": "2018-06-27T16:42:03.515Z",
  "description": "Order No. 72",
  "metadata": {},
  "payment_method": {
    "type": "sberbank",
    "id": "22c5d21b-000f-5000-8000-1ff9ebc96611",
    "saved": false
  },
  "recipient": {
    "account_id": "100001",
    "gateway_id": "1000001"
  },
  "refundable": false,
  "test": false
}
Step 3. Wait for the payment to be successfully completed: you will receive a notification from YooMoney, or you can send periodic requests for payment information .
 
Payment with confirmation via text message
Step 1. Create a payment  with the 
sberbank
type as well as the user’s phone number, linked to the SberBank Online account, in the 
payment_method_data
object, and the 
external
type in the 
confirmation
object.
Example of request
cURL
PHP
Python
curl https://api.yookassa.ru/v3/payments \
  -X POST \
  -u <Shop ID>:<Secret Key> \
  -H 'Idempotence-Key: <Idempotence Key>' \
  -H 'Content-Type: application/json' \
  -d '{
        "amount": {
          "value": "2.00",
          "currency": "RUB"
        },
        "payment_method_data": {
          "type": "sberbank",
          "phone": "79000000000"
        },
        "confirmation": {
          "type": "external",
        },
        "description": "Order No. 72"
      }'
Example of a created payment object
JSON
{
  "id": "22e2724d-000f-5000-a000-1269c483ca3e",
  "status": "pending",
  "paid": false,
  "amount": {
    "value": "2.00",
    "currency": "RUB"
  },
  "confirmation": {
    "type": "external"
  },
  "created_at": "2018-07-19T09:49:01.683Z",
  "description": "Order No. 72",
  "metadata": {},
  "payment_method": {
    "type": "sberbank",
    "id": "22e2724d-000f-5000-a000-1269c483ca3e",
    "saved": false
  },
  "recipient": {
    "account_id": "100001",
    "gateway_id": "1000001"
  },
  "refundable": false,
  "test": false
}
Step 2. Inform the user that they need to confirm the payment.
Step 3. Wait for the payment to be successfully completed: you will receive a notification from YooMoney, or you can send periodic requests for payment information .

Do you have any questions or comments regarding the documentation?

We can set up a call and discuss them: we'll help you solve the problem and you'll help us understand what we need to improve. To do that, share your contact information and select the time.
Yes, I'd like to set up a meeting
 
See also
Embedded payment formsPayment processDeclined paymentsPayment by 54-FZ