Alipay
Step 1. Preparation
First, you need to have a merchant account at Alipay Open Platform.
Before accessing the Alipay, there are some preparations that need to be done.
You can refer to the documentation preparation before access for more information.
1.1 Get APPID
Login the Alipay Open Platform Console and create an application.
How to get the APPID
: Alipay APPID Query Guide
1.2 Configure Cert
Generate an RSA2 certificate based on the document and then you can obtain the appPrivateKey.txt
and appPublicKey.txt
.
Upload the certificate to the applicaiton and then you can download three files: alipayRootCert.crt
, appCertPublicKey.crt
, alipayCertPublicKey.crt
.
Create a Cert called App Cert
at Casoor:
Name | Name in Alipay |
---|---|
Type | choose Payment |
Certificate | content of appCertPublicKey.crt |
Private key | content of appPrivateKey.txt |
Create a Cert called Root Cert
at Casoor:
Name | Name in Alipay |
---|---|
Type | choose Payment |
Certificate | content of alipayCertPublicKey.crt |
Private key | content of alipayRootCert.crt |
Step 2. Create an Alipay Payment provider
Next, create an Alipay Payment provider in Casdoor by filling in the necessary information.
Name | Name in Alipay |
---|---|
Category | choose Payment |
Type | choose Alipay |
Client ID | APPID obtained from Step 1.1 |
Cert | App Cert configured at Step 1.2 |
Root Cert | Root Cert configured at Step 1.2 |
Step 3. Add the Alipay Pay Payment provider for your product
Finally, add the Alipay Payment provider for your product so that users can purchase the product using Alipay.