> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/push-provisioning/es/integrate-the-d1-sdk/getting-started/enviroments/push-provisioning-sandbox-testing.md).

# Pruebas de sandbox de aprovisionamiento push

### Apple Pay sandbox testing

#### Pre-production environment (PreProd)

Open a test account with Apple. The test account has to use the devices that are selected for testing in the PreProd environment which is used along with the Apple Test Sandbox environment. For more information, see [Apple Pay Sandbox Testing](https://developer.apple.com/apple-pay/sandbox-testing/).

{% hint style="info" %}
**Note**

* Ensure that the Apple Pay sandbox environment is available for the country of your test account before you perform the testing in [Sandbox testing eligible country](https://developer.apple.com/apple-pay/sandbox-testing/). If your country is not listed by Apple, you should change the country on your testing device. To do that go to **Settings > General > Language and Region**, and choose a country which supports Apple Pay.
* Visa/Mastercard does not guarantee that the push provisioning will always work in [Apple's test card](https://developer.apple.com/apple-pay/sandbox-testing/). Sandbox testing is mainly used to test the encryption payload and authorization code on D1 SDK.
  {% endhint %}

#### Production environment (Prod)

* Apple whitelists the end user devices used for the certification phase in the production environment based on their Secure Element chipset identity ID (SEID).
* Whitelisting of the devices to be removed when your product goes live. This is based on your request.

### Enabling sandbox mode in Google Pay

By default, Google Pay works in the production mode with real payments. Optionally, you can reconfigure Google Pay to work in the sandbox mode by placing a special file in your device. Once connected to the sandbox, the Google Pay requests will be routed to the Google's sandbox environment which connects to the TSP's sandbox environment.

It is recommended to use the sandbox mode during your development and PreProd testing.

{% hint style="info" %}
**Note**

The Google Pay service is required to run D1 SDK but it is not necessary to install the Google Pay application on the device.
{% endhint %}

#### Using the ADB command to toggle to sandbox mode

To switch Google Pay to the sandbox mode, it requires an empty file at `/sdcard/Download/android_pay_env_override_sandbox` by executing the following command:

```shellscript
adb shell touch /sdcard/Download/android_pay_env_override_sandbox
adb reboot
```

To return to the production mode, delete the file and reboot the device as follows:

```bash
adb shell rm /sdcard/Download/android_pay_env_override_sandbox
adb reboot
```

#### Checking the mode of your device

To check whether your Android device is in the sandbox mode or production mode, go to **Android Settings > Google > Google Pay** or **Android Settings > Google > Account Services > Google Pay**. If you see a small pop-up that says "Sandbox", this means the device is configured to make sandbox calls. If you do not see a pop-up, this means that the device is configured to make production calls.

For some devices that do not have Google Pay in their Google Settings, you have to use the following ADB command to access Google Pay Settings:

```bash
adb shell am start -n
com.google.android.gms/com.google.android.gms.tapandpay.settings.TapAndPaySettingsActivity
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payments.thalescloud.io/push-provisioning/es/integrate-the-d1-sdk/getting-started/enviroments/push-provisioning-sandbox-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
