Alipay API Interface Application Tutorial

Step 1 - log on to your business Alipay. Open.Alipay websiteClick on "I am Alipay business" and can log in directly.

Step 2 -After successful login, enter the "product center" as shown in the figure below, select "computer website payment", click immediate access, fill in the information and submit for signing

Note: Alipay can only apply in the name of the company when it arrives in the name of the company.  

QQ截图20210423152332.jpg  https://www.alipay.com/

1.png



Step 3 - after signing the contract, we can see "product contract management" (the entrance is in the upper right corner of the product center page, below the Alipay head). The following chart shows that the contract has been successfully signed.

  2.jpg










 Step 4 -Plus, we need to get inThe open platform of ant financial services, and then "enter my development platform" and "network industry & amp; "Mobile app", click "payment access" under the create app to fill in the information and apply for creation,

3.png

4.png



       Step 5 -After the application is successfully created, it will automatically enter the application details page, click "add function" in the function list column, select payment received, check "computer website payment" and confirm

5.png

It indicates that the function needs to be signed, and "confirm" can complete the signing

Step 6 -Next is the steps of development settings (still in the application details page you just applied for), which is also the most critical step. Find "interface encryption method" in the development settings column, click "Settings" on the right, and the encryption management window will pop up

6.png


(1) Select the encryption mode asPublic key;

(2) Click payment key generator to enterAlipay RSA key toolHelp document, configure according to the instructions;

Download and install a key to generate RSA key tools (download files to provide the address of Alipay page as the criterion.Windows version tools should not be installed in the directory path with spaces. It is recommended to install them directly to the root directory of any disk, or customize a folder with a name without spaces, such as C: alipaykeytool);

Take the RSA key tool of Windows version as an example. After installation, enter the tool, select the key length as RSA2, the key format as pkcs1 (not applicable to Java), and then click "generate key", the tool will automatically becomeApplication private keyIt's very important to keep them separately and use them later;

alipay-img06-1024x659.png





   (3) Copy the application public key to the public key character input box in step 6, and click Save to generateAlipay public key(very important, keep it)

alipay-img07-1024x716.png