> This page is for Afterpay Online Developer, version Main (default).
> For other versions, use one of these documentation indexes:
> - Main (default): https://developers.afterpay.com/afterpay-online-developer/main/llms.txt
> - v1: https://developers.afterpay.com/afterpay-online-developer/v-1/llms.txt
> - Chinese: https://developers.afterpay.com/afterpay-online-developer/chinese/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.afterpay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.afterpay.com/_mcp/server.

# Shopify Test Mode

The Afterpay payment app on Shopify supports a Test Mode. This means you are able to mock all supported transactions including:

* Authorizations
* Captures
* Voids
* Refunds

> **Warning**
>
> Do not enable test mode on your live site. Once the payment method is activated in the store settings, it is live for customers to use. Only use a staging or development Shopify store for testing.

## Enable Test Mode for Afterpay

> **Note**
>
> Before you enable Test Mode, complete the initial Afterpay application configuration. To do this, follow the steps in [Add Afterpay at Checkout](/afterpay-online-developer/main/guides/platforms/shopify/add-afterpay-at-checkout) to verify your merchant account in the Business Hub.

To enable Test Mode for Afterpay:

1. From your [Shopify admin](https://www.shopify.com/login), go to *Settings* > *Payments*.

2. In the *Additional payment methods* section, click **Afterpay**.

3. In the *Test mode* section, activate the toggle.

4. Click **Save**.

You’re now ready to test Afterpay transactions in your dedicated test store.

## How do I Know if Sandbox is Enabled

To check if Sandbox has been configured correctly, go to your test site and conduct a test transaction. Once it has been redirected to the Afterpay Login page, check the URL and it should be a Sandbox URL.

For example:

`portal.sandbox.afterpay.com/v2/checkout/en-AU/password`

## How to Create a Test Order

For Afterpay transactions, follow the instructions [here](/afterpay-online-developer/main/guides/api-development/test-environments) to create a sandbox customer account and mock various transaction approval outcomes.