Skip to main content

Sberbank

Quick Start
  1. Sign up at sberbank.ru and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to Sberbank →

Overview

Sberbank payment integration

Provider IDsber
CategoryBank Transfers
Websitesberbank.ru

Supported operations: Payments Status Payouts


Configuration

Required Parameters

ParameterDescription
loginmerchant login for Sber API
passauthentication password for Sber API

Optional Parameters

ParameterDescription
channelConnection channel (optional) (default: mychannel)
bikBank BIC code (for card payments) (default: 044525225)
accountSettlement account (for card payments) (default: 40702810...)
fiscalization_mode"external"
fiscalization_config_idFiscalizationConfig.id for ATOL/OrangeData (default: 123)

Example Configuration

{
"provider": "sber",
"provider_params": {
"login": "merchant-api",
"pass": "secure_password",
"returnUrl": "https://merchant.com/success",
"failUrl": "https://merchant.com/fail"
}
}

Payment Flow

Payments - two-step process

Step 1: Payment registration (/register.do)

  1. Order is created in Sberbank system
  2. Returns orderId (outertxid)
  3. For SBP: returns sbolDeepLink for payment
  4. For cards: orderId is saved for next step

Step 2: Order payment (/paymentOrder.do) - cards only

  1. Card data is sent with orderId
  2. Returns formUrl - 3DS or confirmation link
  3. Returns in auth_params for user redirect

Payment Type Details

Card Payments (bank_card)

  • Requires two requests: register + paymentOrder
  • formUrl from paymentOrder is used for 3DS
  • Card data is transmitted with prefixes $PAN, $CVC

SBP Payments (sbp)

  • Only one request: register with SBP parameters
  • Returns sbolDeepLink in externalParams
  • User follows the link to pay in the banking app

Status Check

Endpoint: /getOrderStatusExtended.do

Parameters:

  • orderId: order ID (provider order ID)
  • userName and password

Returns:

  • orderStatus - order status
  • actionCode - action code (0 = success)
  • actionCodeDescription - error description

Status Mapping

Provider Status4pay StatusDescription
0newOrder registered, not paid
1authorizedPre-authorized amount held
2chargedFully authorized
3rejectedAuthorization cancelled
4refundedRefund processed
5authorizingACS authorization initiated
6rejectedAuthorization declined

Testing

Sandbox URL

https://ecomtest.sberbank.ru/ecomm/gw/partner/api/v1

Test Cards

CardNumberExpCVV3DS PasswordResult
Visa4111 1111 1111 1111any futureany 3 digits12345678Successful payment
Mastercard5555 5555 5555 4444any futureany 3 digits12345678Successful payment
MIR2200 0000 0000 0053any futureany 3 digits12345678Successful payment
Visa (decline)4000 0000 0000 0002any futureany 3 digitsDeclined

Resources