Testing
When installing the Yandex Pay payment button on your site, you can use a test environment (sandbox) to fine-tune the purchase scenario via Yandex Pay on your site.
To use the test environment, specify the SANDBOX
environment in the paymentData
object:
Sample code for Web SDK:
paymentData.env = YaPay.PaymentEnv.Sandbox;
Test payment cards are available in the test environment:
Visa ***4242
, to test the bank card payment scenario (AllowedAuthMethod==PanOnly
).MasterCard ***4444
, to test the tokenized card payment scenario (AllowedAuthMethod==CloudToken
).