Shopify Test Mode
The Afterpay US payment app on Shopify supports a Test Mode. This means you are able to mock all supported transactions including:
- Authorizations
- Captures
- Voids
- Refunds
There are the following sections on this page:
Enable test mode for Afterpay US
Note
Before you enable Test Mode, please complete the initial Afterpay US configuration. To do this, follow the steps to Add Cash App Afterpay at Checkout to verify your merchant account in the Business Hub.
To enable the test mode for Afterpay US:
-
From your Shopify admin, go to Settings > Payments.
-
In the Additional payment methods section, click Afterpay US (New).
-
In the Test mode section, turn the toggle on. See the screenshot below:
-
Click Save.
You’re now ready to test Afterpay US 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 Cash App 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 Cash App Afterpay transactions, follow the instructions here to create a sandbox customer account and mock various transaction approval outcomes.
For Cash App Pay transactions, creating test orders involves slightly different steps for desktop and mobile views.
-
On desktop, you’re taken to a page that displays a Cash App Pay QR Code. Scan this QR Code with your mobile device to decide whether to accept or decline the test order
-
On mobile, you’re automatically sent to a page where you can directly choose to accept or decline the test order
Enable test mode for Cash App Pay
Before you enable Test Mode, please complete the initial Cash App Pay application configuration. To do this, follow the steps to Add Cash App Pay at Checkout and use your production merchant credentials (Production Merchant ID and Production Secret Key). Once the Cash App Pay application is configured using your production merchant credentials, follow the steps below to enable the test mode for Cash App Pay.
To test a Cash App Pay integration, do the following:
-
From your Shopify admin, go to Settings > Payments.
-
In the Additional payment methods section, click Cash App Pay.
-
In the Test Mode section, click the toggle on. See the picture below:
-
On the initial Cash App Pay setup screen, click Test Mode.
-
On the Test Mode screen, enter your sandbox credentials.
-
Enter your Cash App Afterpay Sandbox merchant ID in the Sandbox Merchant ID field.
-
Enter your Cash App Afterpay Sandbox secret key in the Sandbox Secret Key field.
-
Click Continue.
Your store is now ready to mock Cash App Pay transactions with your Sandbox credentials.