API testing
Before performing operations with real data, test the integration with Bank 131 on the demo server: https://demo.bank131.ru
. This allows you to try out different payment and payout scenarios and check error handling through the use of special test values.
To do this, obtain your test project identifier and download Bank 131's public key for testing—download (PEM).
The rules for forming and sending requests on the test server are the same as when working with actual data.
Bank cards for test operations
Use both cards with 3D Secure support and without it.
You can create tokens with any desired names for test cards.
Cards with 3D Secure support:
Card number | Payment system |
---|---|
2200774546102058 | "Mir" |
4000000000000002 | Visa |
5500000000000004 | MasterCard |
To go successfully through 3D Secure, specify: 12345
.
Cards without 3D Secure support:
Card number | Payment system |
---|---|
4242424242424242 | Visa |
5101180000000007 | MasterCard |
YooMoney wallet (Yandex.Money) for test operations
Use any wallet number containing 11–12 digits.
Bank account for test operations
Use any account number containing 20 digits.
Testing unsuccessful operations
To test errors at various stages of payment and payout processing, pass one of the following values in the customer.reference
field of the customer
object.
Value | Result |
---|---|
thief | For payments only. The payment will be canceled when money is put on hold |
loser | For payments and payouts. The payment will be canceled when the funds on hold are debited; the payment will result in an error |