Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

API call simulation

iTest helps developers debug interfaces in the sandbox environment.

Before you start

Before using iTest, go to Alipay Developer Center, enter the Integration Settings section, and configure your settings for the sandbox environment.

  1. Click the Sandbox tab, then click Edit public key.

image.png

  1. Enter your public key and click Submit.

image.png

If you do not have a public key, you can download the tool for generating RSA2 keys and use it to generate your keys.

image.png

  1. Enter your notification URL, which will be used for receiving notifications.

image.png

Note:

Instead of using iTest, you can also download Postman scripts to debug locally.

Use iTest

To test an interface integration, complete the following steps:

  1. In the Request tab, select the specific interface, wallet, and device (if applicable, which depends on the payment product for your application) you need to test. For example:

image.png

  1. Enter your private key. The platform will not save your key.

image.png

  1. (Optional) Edit the request message in the Request Body field.

image.png

  1. Click Send to send the request.

image.png

After the request is sent, the response message is then displayed in the Response tab on the right side of the screen.

The request is signed automatically. How the request is signed is displayed in the Signing tutorial tab.

To start using the iTest tool, go to Alipay Developer Center, create an application, and then locate iTest under Development Tools.