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

How can we help?

BACK

Testing in sandbox vs. in production environment

The main differences between testing in sandbox environment and in production environment are the interface accesses, parameters, and configurations.

Interface accesses

The differences in interface accesses are listed below:

  • In production environment, you must contract with Alipay to use the interfaces.
  • In sandbox environment, you can log in to Sandbox and acquire test accounts. With the test accounts, you can test specific interfaces in products that are supported by the sandbox. See Supported products for details.

Parameters and configurations

The differences in parameters and configurations are listed below:

PID

  • In production environment, you must use the PID assigned by Alipay in the contract to call the interfaces.
  • In sandbox environment, you can use the test PID assigned by the Sandbox to call the interfaces.

Keys

  • In production environment, you must contact Alipay Technical Support to upload your RSA/RSA2 public keys, and obtain Alipay's public keys.
  • In sandbox environment, you can upload your RSA/RSA2 public keys and obtain Alipay's public key yourself.

Service address

Use the specific service address for sandbox environment and production environment:

Environment

HTTPS request URL

Production environment

https://intlmapi.alipay.com/gateway.do

Sandbox environment

https://mapi.alipaydev.com/gateway.do



沙箱环境与正式环境的区别主要在于接口权限和配置参数。

1、接口权限不同

正式环境需要签约对应接口权限,不能调用未签约的接口。

沙箱环境目前支持部分接口测试,您可以在沙箱平台自助获取沙箱测试商户PID,以调用境外当面付、境外收单、海外代扣、境外收单(香港)等相关接口。


2、配置参数不同

(1)正式环境下需要使用签约后获得的PID调用接口;沙箱环境下则使用沙箱平台提供的沙箱测试商户PID进行调用。

(2)正式环境下目前请联系支付宝国际技术支持团队overseas_support@service.alibaba.com为您上传RSA/RSA2公钥后,可获取支付宝国际RSA/RSA2公钥;沙箱环境下商户可以自助上传RSA/RSA2公钥后,您可以直接在沙箱平台获得沙箱支付宝国际RSA/RSA2公钥

(3)支付宝网关:

正式环境支付宝国际网关:https://intlmapi.alipay.com/gateway.do

沙箱环境支付宝国际网关:https://mapi.alipaydev.com/gateway.do


NEED HELP?

NEED HELP?