Sandbox
Sandbox is an environment where you can mimic the characteristics of the production environment and create simulated responses from all APIs the application relies on before going live. You can make API tests based on your own requirements including making a transaction, cancel, or refund a transaction, and so on.
Sandbox gateway
Use the Alipay Sandbox gateway for testing. The URL of the Sandbox gateway is:
https://mapi.alipaydev.com/gateway.do?
Sandbox test account
You can obtain the test account information in Alipay Sandbox portal. To access the portal, an Alipay merchant account is required. If you don't have the account, go to Alipay Portal to sign up.
The following video gives you a quick overview of Alipay Sandbox portal:
There are two types of test account: merchant test account and buyer test account.
Merchant test accounts
Find the merchant test account information in the Alipay Sandbox portal under Sandbox Accounts > Merchant. More than one test accounts are provided, and the accounts are sorted by payment product. Find the correct one to use according to the payment product you want to test. For example, to test the Alipay Auto Debit product, use the account information provided under Alipay Auto Debit.
Note:
- Signature key
The MD5 key is provided by default. If you want to test the RSA signature, prepare an RSA key pair and then upload the public key by clicking Upload. - Login password
Use this password to access Alipay Global Portal (Sandbox environment)
Buyer test account
Use the buyer test account to login to the Alipay Sandbox app.
The buyer test account information can be found in the Alipay Sandbox portal under Sandbox Accounts > Buyer.
Note:
Account balance: You can click Top Up to top up the buyer test account.
Sandbox app
Note:
The Alipay Sandbox App supports only Android at this time.
- Login to the Alipay Sandbox Portal, and then go to Alipay Sandbox App.
- Take one of the following steps:
- Scan the QR code displayed on the page with a QR code reader on your Android device.
This will download and install the Sandbox app to your device. - Click the download link to download the Sandbox app to your computer.
To login to the Alipay Sandbox app, use the buyer test account and login password that are provided in the portal under Sandbox Accounts > Buyer.
Supported products
Product | Interface | Remark |
New Cross-border Online Payment |
| - |
HK Online Payment |
| - |
Cross-border In-store Payment |
| - |
HK In-store Payment |
| - |
Auto-debit |
| - |
gmportal |
| - |
Sandbox Reconciliation Files |
| Contact Technical Support. |
Globalprod Reconciliation Files |
| Login to Alipay Portal (Sandbox environment), and then go to My Alipay to download the reconciliation files. |
Tax-refund |
| - |