Testing in sandbox
Alipay sandbox gateway
Use the Alipay sandbox gateway for testing. The URL of the sandbox gateway is:
Alipay Sandbox test accounts
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 feature. Find the correct one to use according to the payment feature you want to test. For example, to test the Alipay Auto Debit feature, use the account information provided under Alipay Auto Debit.
- Login password: Use this password to login to the Alipay for Business website in the sandbox environment.
- Signature key: Only MD5 signature is supported in the sandbox environment. RSA signature is not supported at this time.For more information about the MD5 signature, see Digital Signature.
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.
Account balance: You can click Top Up to top up the buyer test account.
Downloading the Alipay Sandbox App
The Alipay sandbox app supports only Android at this time.
1) In the Alipay sandbox portal, click Alipay Sandbox App from the menu on the left.
2) 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 log in to the Alipay sandbox app, use the buyer test account and login password that are provided in the portal under Sandbox Accounts > Buyer.