## Sandbox uptime

The sandbox environment doesn't have uptime SLAs like our production environment.
If you encounter an error that you suspect is related to a sandbox outage, wait one
United States business day before contacting us. Outages typically resolve themselves
within that time period. Due to the potential for downtime, don't design any of your
critical release processes to be dependent on the sandbox environment.

## Enable and disable sandbox mode on an Android device

> [!IMPORTANT]
> **Important:** The previous methods to enable and disable sandbox mode (adb and sandbox file download) are deprecated and will no longer work on Android devices. For connected Wear OS devices, see further instructions below the Android instructions.

**Important:** The feature to toggle between the Sandbox and Production environments is hidden by default. If you don't see the toggle, you can [use the Google Pay Sandbox Access Request form](https://docs.google.com/forms/d/e/1FAIpQLSfqSLRGXk9QdYKdwPVVrLsE2-5tYwlpgC-D5afL4a_AaZ5tcQ/viewform) to request that the Google Account you use in Google Wallet be added to the allowlist.

You can enable sandbox mode using the TapAndPay environment settings. To return to production
mode, you follow the same steps outlined but select production instead of sandbox.

### Use the TapAndPay environment settings

Execute the following steps to enable sandbox mode:

1. Open the **Settings** app.
2. Tap your **Google Account / Profile Picture** at the very top of the screen (it will say your name and "Google services and preferences").
3. Choose your profile if given the option, then tap **All services**.
4. Scroll to category **Other** and tap **TapAndPay Environment** . If you don't see **TapAndPay Environment**, reboot your device and start over from step 1.
5. Tap the drop-down menu and select **SANDBOX**.
![Environment change confirmation screenshot](https://developers.google.com/static/wallet/images/sandbox-env-selector.png)
6. You should see the following dialog notifying that the environment has changed. Tap **OK** and reboot your device.
![Environment change confirmation screenshot](https://developers.google.com/static/wallet/images/sandbox-switch-env-confirmation.png)

### Sync Google Wallet environment

When you open Google Wallet after rebooting, you may see the following dialog , which will
require you to force stop and reopen Google Wallet:
![Environment change confirmation screenshot](https://developers.google.com/static/wallet/images/sandbox-force-stop.png)

### Enable and disable sandbox mode on a Wear OS device

> [!IMPORTANT]
> **Important:** Using adb to enable and disable sandbox mode will no longer work on Android devices. These instructions are only for connected Wear OS devices, see instructions at the beginning of the page for enabling and disabling sandbox mode on Android devices.

To enable sandbox mode on a connected Wear OS device, add an empty file and reboot, as the
following example shows:

    adb shell touch /sdcard/Download/android_pay_env_override_sandbox
    adb reboot

To switch back to production mode on a connected Wear OS device, delete the file and reboot the
device, as the following example shows:

    adb shell rm /sdcard/Download/android_pay_env_override_sandbox
    adb reboot

## Check if your Android device is in sandbox or production mode

To see if your Android device is in sandbox or production mode, execute the following steps

1. Open the Google Wallet app .
2. At the top right, tap your profile picture or account \> **Wallet settings**.
3. Go to the end of the page. If you see a confirmation message that says SANDBOX, you're configured to make sandbox calls. If you don't see a message, you're configured to make production calls.

![Wallet settings in production mode](https://developers.google.com/static/pay/images/production-mode.png) *Figure 1*: Production mode ![Wallet settings in sandbox mode](https://developers.google.com/static/pay/images/sandbox-mode.png) *Figure 2*: Sandbox mode

Some devices don't have Google Wallet in their Google Settings. In order to access Google Wallet
Settings, you need to use
[adb](https://developer.android.com/tools/adb) with the following
command:

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

## Google-hosted endpoints

### Notification endpoints return HTTP 404

First, verify that you are calling the right endpoint. If you still see a 404,
it is likely that the mTLS certificates have been misconfigured. Please reach
out to your Google representative with the certificates.

## Issuer-hosted endpoints

### Failed writing to server / I/O error / HTTP 413

Issuers should ensure that the maximum content length for requests is set to at
least 20 MB.