Testing
Before accepting payments from customers, we recommend testing the service.
Testing Yandex Split
To start testing the Yandex Split service, switch your settings to the test environment. Testing steps differ depending on the integration type:
Alert
Testing is conducted in the sandbox environment. In this case, requests to the Yandex Split API are sent to https://sandbox.pay.yandex.uz.
Testing a direct QR code
To test a direct QR code:
-
Create a test order using the
https://sandbox.pay.yandex.uz/api/merchant/v1/ordersrequest and obtain the payment link from the response. -
Convert the received payment link into a QR code. You can do this using a third-party service like QR Code Generator.
-
Print the QR code and display it on the screen of your cash register software.
-
Use your smartphone or the Yandex Split app's camera to read the payment link from the QR code and proceed to the payment form:
- If the Yandex Split app is not installed, the payment process is carried out in your browser after you scan the QR code. This may require authorization in Yandex ID.
- If the Yandex Split app is installed, the payment process is carried out in the app after scanning the QR code.
-
In the payment form, select any payment method (Split payment). To learn about possible payment scenarios, see Simulating payment results.
Note
A real account is used for authorization, but the payment card will be selected from a list of test cards.
Make sure the payment is a test payment: the payment link URL will have the
sandboxprefix. For example,https://sandbox.pay.ya.uz/o/nxPUqR. -
Receive an SMS with the authorization code to the phone number linked to the customer's account.
-
Enter the code from the SMS. This will result in a test payment for a purchase with the payment success page displayed.
Note
At this stage, card acquiring takes place in the cardholder's bank in the production environment. In the test environment, acquiring is simulated programmatically.
-
After the payment is completed, the cash register software should generate a receipt.
-
Issue a partial refund for one item or part of an item's cost from the test order.
-
Issue a full refund of an item from the test order.
Simulating payment results
While testing the service, you can use the payment emulator to test various payment processing scenarios.
The following results can be simulated:
|
Result |
How to reproduce |
|
Card not supported |
Select a VISA card in the payment form. The error "That card is not supported" will be displayed, and you can choose another card to complete the payment. |
|
Payment failed |
|
|
Insufficient funds |
|
|
Payment successful |
|
Viewing test payments
In your Yandex Split personal account, you can view the list of payments created in the test environment and their details. To do this:
- Go to Settings and enable the Test data option for your store.
- Go to Payments. You'll see a list of test payments along with a message indicating that test environment mode is active:
To hide test payments, disable the test environment. This can be done in two ways:
- In the Payments section: Click Disable in the top-right corner.
- In the Settings section: Disable the Test data option for your store.
Note
You can only switch back to the list of test payments by activating the test environment under Settings.