Alfa-Bank SBP
Quick Start
- Sign up at alfabank.ru and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Alfa-Bank SBP payment integration
| Provider ID | alfabank_sbp |
| Category | Bank Transfers |
| Website | alfabank.ru |
Configuration
Required Parameters
| Parameter | Description |
|---|---|
username | merchant login |
password | merchant 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):
-
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
-
get_payment_qr - retrieval QR-code via POST
/sbp/c2b/qr/dynamic/get.do:- userName, password, mdOrder (orderId)
- Retrieval qrId, payload (QR content), qrStatus
-
status - status check via POST
/sbp/c2b/qr/status.do:- userName, password, mdOrder, qrId (from auth_params)
- Parsing transactionState
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
STARTED | new | |
CONFIRMED | charging | |
ACCEPTED | charging | |
REJECTED | rejected | |
REJECTED_BY_USER | rejected | |
CREATED | new | |
DEPOSITED | charged | |
DECLINED | rejected |