Alipay payment configuration

Updated at:
Copy as MD

Alipay payment configuration

1. Register an Alipay merchant account and complete real-name authentication. For details, see Alipay Authentication.

2. Sign in to the Alipay Merchant Platform (https://b.alipay.com/page/portal/home). On the Product Center page, sign up for Mobile Website Payment and PC Website Payment.

3. After signing up, download the Alipay Open Platform Key Tool from the Alipay Open Platform (download link: https://opendocs.alipay.com/common/02kipk).

4. After installation, open the tool. Set the signing method to Key and the encryption algorithm to RSA2. Then, click Generate Key.

This generates an application public key and an application private key. Copy their contents. Click Format Conversion, paste the application private key into the input box, and click Convert. The result is the merchant private key.

5. On the Alipay Open Platform, go to console > Web & Mobile App and create an application. After creating the application, you can find its AppID on the application's details page.

6. After creating the application, go to Development Information > Interface signing method and click Set/View on the right. In the dialog box, paste the application public key from step 4. This generates the Alipay public key.

7. On your backend payment configuration page, enter the AppID into the "Alipay AppID" field, the merchant private key into the "Merchant Private Key" field, and the Alipay public key into the "Alipay Public Key" field. Click Save.