感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Test your integration

[Step 7 of 8] Sandbox requests do not result in live transactions. Test your end-to-end workflow and downstream processes in Sandbox, to make sure you’re handling both success and failure scenarios before going live. Note that to facilitate testing, the buyer experience in Sandbox does not always reflect the full buyer experience in Production. For example, in Sandbox you’ll have access to simulated payment methods, which can be used to simulate different payment scenarios.

To get started, make sure you have access to Amazon Pay Sandbox test buyer accounts. Then use simulated payment methods and simulation strings to test your integration.


1. Sandbox test buyer accounts

You must use Amazon Pay Sandbox accounts to complete transactions in the Sandbox environment. These accounts come pre-configured with simulated payment methods to help you mimic the buyer experience. You can also add shipping addresses, if they’re needed to complete checkout.


2. Simulated payment methods

Amazon Pay Sandbox test buyer accounts come pre-configured with simulated payment methods that you can use to simulate different payment scenarios, such as payment declines and checkout abandonment. Use them to test your front-end integration. See Sandbox simulations to learn how to use simulated payment methods to test your integration.


3. Simulation strings

To simulate different responses, pass simulation strings in your API request header. Use these strings to test your back-end integration. See Sandbox simulations.