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.
Use the Alipay Sandbox gateway for testing. The URL of the Sandbox gateway is:
https://mapi.alipaydev.com/gateway.do?
Alipay Sandbox is under maintenance starting on every Sunday at 12:00 GMT+8 and back online on Monday at 12:00 GMT+8. Access to the Sandbox environment might be unavailable during this window.
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.
Watch the video below to have a quick overview of Alipay Sandbox portal:
There are two types of test account: merchant test account and buyer test account.
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.
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:
The Alipay Sandbox App supports only Android at this time.
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.
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 | |
- |