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

Going live

You can integrate the demo code or write your own code and run in Alipay production environment. If you use demo code, change the following settings:

Changing the Gateway

Change Alipay gateway to production URL in the AlipaySubmit.java file: 
https://mapi.alipay.com/gateway.do?

Getting the production PID and key

Go to Alipay Merchant Portal and log in with your user ID. Click My Technical Service after login. You can check your PID and MD5 Key.

The MD5 Key can be used when you apply Alipay solutions in your online/offline store. To check this Key, you will need to enter your payment password.

image

After entering the password, you can get an MD5 Key:

image

The PID is an identification number that is used frequently when you are using Alipay solutions. This PID is tied to the Email which you used to login merchant portal. You can always check your PID here when you forgot.

image

The RSA key is not provided on Alipay Merchant Portal and need to be created it by using the OpenSSL tool. After you create the RSA keys, you need to send the RSA public key to Global Merchant Technical Support (AlipayGlobalTechService@service.alipay.com) and Alipay support team will help you upload the key.

Configuring the account and key

Change the account and key to your real account and key in the AlipayConfig.java file.

image