Antom, leading provider of tailored payment solutionsAntom, leading provider of tailored payment solutions

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.

Before going live in the production environment, it is very helpful to verify whether all API requests and responses are correctly handled, and whether user experiences are as expected. You can test Alipay payment features integrated with your applications in sandbox environment before going live.

Gateway

The sandbox gateway is https://mapi.alipaydev.com/gateway.do?

Maintenance schedule

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 period.

Creating an Alipay merchant account

Before you can test in the Alipay sandbox environment, you must create an Alipay merchant account on the Alipay for Business website first. If you already have an Alipay merchant account, skip to Signing in to the Alipay sandbox portal.


Complete the following steps to create an Alipay merchant account:

  1. Go to the Alipay for Business website: https://global.alipay.com
  1. In the top-right corner of the homepage, click Sign Up.
  1. Enter your email, enter the code displayed, and then click Continue.
  1. Follow the instructions to complete the account creation.

The following video explains how to create an Alipay merchant account:

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. If you already have an Alipay merchant account, skip to Signing in to the Alipay sandbox portal.

Signing in to the Alipay Sandbox portal

  1. Go to: https://isandbox.alipaydev.com/user/intlAccountDetails.htm
  1. Sign in with your Alipay merchant account.
    After you log in to the portal, you can find merchant or buyer information such as account, ID, and secret key.

image

Two types of test account exist: merchant test account and buyer test account.

Merchant test accounts

Under Sandbox Accounts > Merchant, you can find the following information:

  • Merchant UID/PID: Sandbox partner ID is composed of 16 digits beginning with 2088.
  • Settlement currency: Settlement currency supported.
  • Signature algorithm: Sign type. DSA, RSA, and RSA2 are supported
  • MD5 Signature key: The MD5 key is provided by default.
  • RSA (SHA1) Signature key: RSA key value. If you want to test the RSA signature, prepare an RSA key pair and then upload the public key by clicking Upload.
  • RSA2 (SHA256) Signature key: RSA2 key value. If you want to test the RSA2 signature, prepare an RSA2 key pair and then upload the public key by clicking Upload.

Note:
More than one test accounts are provided, and the accounts are sorted by payment products. Find the right test account 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.

Buyer test account

Under Sandbox Accounts > Buyer, you can find the following information:

  • Buyer account: Use this account to login to the Alipay Sandbox app.
  • Buyer UID: Sandbox buyer ID is composed of 16 digits beginning with 2088.
  • Login password: Use this password  to login to the Alipay Sandbox app.
  • Payment password: Use is password to pay in Alipay Sandbox app.
  • Account balance: Account balance of the buyer test account. Click Top Up to top up the buyer test account.

Sandbox app

Currently, only Android app is provided.

  1. Login to the Alipay Sandbox portal, and then go to Alipay Sandbox App.
  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 login to the Alipay Sandbox App, use the buyer test account and login password that are provided in the portal under Sandbox Accounts > Buyer.