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
| Item | In the sandbox |
|---|---|
| Money | No charges in any scenario: the subscriber account and card balance do not change |
| Method responses | The invoice is stored: GetInvoice returns the real MerchantOrderID, MSISDN and amount from CreateInvoice. OperatorID and NetworkID remain sandbox constants |
| Protocols | XML Merchant API and REST JSON v3 work both in the sandbox and in production; only the host differs |
| PIN approval | No 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 Secure | Switched by the card_3ds_enabled project setting (enabled by default). Production has no such setting — the challenge is enabled individually |
| Billing hooks | test_info / <TestInfo> set the billing outcome and callback delay; JSON also has force_http_status and callback_url |
| Error emulation | ERR_NNN in merchant_order_id and reserved card endings 0001–0005 |
| Billing timing | XML GetInvoice returns Active / NOT_PAID for the first 6 seconds, then Processed / PAID |
| Approval scheme | A DCB invoice always returns SMS_PIN: the operator's scheme choice is not emulated |
| SBP and SberPay | Not distinguished: both lead to one QR page; only the screen selected by deviceType differs |
| Payment widget | Works with all methods; a simulation button inside the widget completes payment, and production has no such button |
| Deduplication | Invoices and mobile contracts are deduplicated per customer: an open invoice or a repeated merchant_contract_id returns 409 |
| createInvoice response | 201, and next to data.invoice_id the legacy alias data.id is returned |
| Retention | Data and logs are kept for 10 days, then deleted: older invoices can no longer be found |
Subscriptions
| Item | In the sandbox |
|---|---|
| Money and SMS | No charges; no SMS is sent — neither the PIN on CreateSubscription nor a resend on ResendPinCode |
| Subscription state | Stored: 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 declines | Reproduced with number endings 0001–0003, a wrong PIN and error cards. Rate thresholds are the same as in production |
| GetSubscriptionStatus | Returns the real status: Pending → Active → Cancelled / ApprovingFailed; with the billing loop also Redelivering, RenewingFailed, Closed. OperatorID is always 22, Country is ru |
| Charges | No 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 approval | PIN 1234, 3 attempts; after the third the subscription stays ApprovingFailed forever |
| Card and SBP | CustomerType=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 widget | Works: embed.js is published and the token comes from AuthorizeUrl. A simulation button completes the initial step; there is no separate first-charge notification |
| Callback | Sent 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 |
| Retention | Data, 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.