Skip to main content

Alfa-Bank SBP

Quick Start
  1. Sign up at alfabank.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 Alfa-Bank SBP →

Overview

Alfa-Bank SBP payment integration

Provider IDalfabank_sbp
CategoryBank Transfers
Websitealfabank.ru

Configuration

Required Parameters

ParameterDescription
usernamemerchant login
passwordmerchant password

Example Configuration

{
"env": "prod",
"username": "merchant_login",
"password": "merchant_password",
"currency": "810",
"callback_url": "https://api.merchant.com/callback"
}

Payment Flow

Payments via SBP (one-phase and two-phase):

  1. register_payment - registration payment via POST /register.do:

    • userName, password, orderNumber (transaction ID)
    • amount, currency (old format: 810 = RUB)
    • returnUrl, failUrl, dynamicCallbackUrl
    • description
    • Retrieval orderId
  2. get_payment_qr - retrieval QR-code via POST /sbp/c2b/qr/dynamic/get.do:

    • userName, password, mdOrder (orderId)
    • Retrieval qrId, payload (QR content), qrStatus
  3. status - status check via POST /sbp/c2b/qr/status.do:

    • userName, password, mdOrder, qrId (from auth_params)
    • Parsing transactionState

Status Mapping

Provider Status4pay StatusDescription
STARTEDnew
CONFIRMEDcharging
ACCEPTEDcharging
REJECTEDrejected
REJECTED_BY_USERrejected
CREATEDnew
DEPOSITEDcharged
DECLINEDrejected

Resources