---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://pay.yandex.ru/docs/en/psp/testing.md
  - href: en/psp/testing.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://pay.yandex.ru/docs/en/llms.txt

# 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](https://pay.yandex.ru/docs/en/psp/web-sdk/index.md):

```javascript
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`).
