Sandbox

Differences from production

Protocol: JSON v3 · XML 2.9OpenAPI

What works differently in the sandbox compared with production.

The sandbox mirrors the production API contract — method addresses, request structure, signature and response format — but not billing. Below is everything that behaves differently.

One-time payments

ItemIn the sandbox
MoneyNo charges in any scenario: the subscriber account and card balance do not change
Method responsesThe invoice is stored: GetInvoice returns the real MerchantOrderID, MSISDN and amount from CreateInvoice. OperatorID and NetworkID remain sandbox constants
ProtocolsXML Merchant API and REST JSON v3 work both in the sandbox and in production; only the host differs
PIN approvalNo SMS is sent. POST /invoices/{invoice_id}/authorize and XML AuthorizeInvoice expect 1234, three attempts. The card page accepts any 4 digits instead of 3-D Secure
3-D SecureSwitched by the card_3ds_enabled project setting (enabled by default). Production has no such setting — the challenge is enabled individually
Billing hookstest_info / <TestInfo> set the billing outcome and callback delay; JSON also has force_http_status and callback_url
Error emulationERR_NNN in merchant_order_id and reserved card endings 0001–0005
Billing timingXML GetInvoice returns Active / NOT_PAID for the first 6 seconds, then Processed / PAID
Approval schemeA DCB invoice always returns SMS_PIN: the operator's scheme choice is not emulated
SBP and SberPayNot distinguished: both lead to one QR page; only the screen selected by deviceType differs
Payment widgetWorks with all methods; a simulation button inside the widget completes payment, and production has no such button
DeduplicationInvoices and mobile contracts are deduplicated per customer: an open invoice or a repeated merchant_contract_id returns 409
createInvoice response201, and next to data.invoice_id the legacy alias data.id is returned
RetentionData and logs are kept for 10 days, then deleted: older invoices can no longer be found

Subscriptions

ItemIn the sandbox
Money and SMSNo charges; no SMS is sent — neither the PIN on CreateSubscription nor a resend on ResendPinCode
Subscription stateStored: SubscriptionID is reused by all methods and the status changes with the scenario. A repeated CreateSubscription for the same number is rejected with SubscriptionAlreadyCreated
Service declinesReproduced with number endings 0001–0003, a wrong PIN and error cards. Rate thresholds are the same as in production
GetSubscriptionStatusReturns the real status: Pending → Active → Cancelled / ApprovingFailed; with the billing loop also Redelivering, RenewingFailed, Closed. OperatorID is always 22, Country is ru
ChargesNo money is taken; the outcome is set by ExpectedBillingResult and the period is compressed to seconds by BillingPeriodSeconds. Without <TestInfo> there are no charges
PIN approvalPIN 1234, 3 attempts; after the third the subscription stays ApprovingFailed forever
Card and SBPCustomerType=Card returns a working AuthorizeUrl; card details are not validated and a decline uses card endings 0001–0005; SBP and SberPay are not distinguished
Payment widgetWorks: embed.js is published and the token comes from AuthorizeUrl. A simulation button completes the initial step; there is no separate first-charge notification
CallbackSent on status change: APPROVED, REJECTED, CANCELLED and billing-loop events. The first is delayed by 15 seconds. The address is the project callback URL; you cannot pass your own
RetentionData, request logs and callback logs are kept for 10 days

Not available in the sandbox

The merchant-hosted payment form (which requires PCI DSS) is not available in the sandbox.