Testing
Before performing operations with real money, you need to test everything in the test environment. The interaction format and the way you make requests are the same as when working with actual data.
The only two things that are different are the server address to send requests to (https://demo.bank131.ru
), and the Bank 131 key to use.
Data for test operations
Bank cards
During testing, use at least one 3D Secure card and at least one without 3D Secure.
With 3D Secure
- 2200774546102058
- 4000000000000002
- 5500000000000004
To go successfully through 3D Secure, specify
12345
.
To fail the procedure, specify any other value.
Without 3D Secure
- 4242424242424242
- 5101180000000007
YooMoney wallet (ex Yandex.Money)
Any wallet number: 11 to 12 digits. The payout will be successful.
Bank account
Any value
Testing unsuccessful operations
By default, all operations are successful. To test an unsuccessful scenario, in your request's Customer
object, in the customer.reference
field, pass one of the following values.
Value | Result |
---|---|
thief | Only for payments. 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 |