Summary of calling Alipay interface

https://docs.open.alipay.com/200/105310/

 

[ First, you need to create an application ] Use an Alipay account to log in to the open platform and enter the developer center.

Alipay officially provides two types of applications:

  • Third-party applications: Applicable to service providers (ISVs) to develop applications for merchants and expand their use. For details, see third-party applications .
  • Self -use application : Use open functions to develop applications for yourself or your company. For details, see Self- use applications . Self-developed applications are divided into web / mobile applications , applets and life account applications.

 

We generally create and create "web / mobile applications" . The following is also an example:

[ Choose the type of access capability ]

image 3.png

Note :

The application status at the time of application creation is "under development", and the interface cannot be officially called online.

 

[Fill in the application basic information] The application basic information can be improved at any time without review in the process of developing applications .

Application name, application icon

Need perfect content

effect

Application Name

The application name and application icon will be revealed in the authorization and sharing scenarios, please fill in the relevant information accurately.

Application icon

The application icon representing the application cannot upload pictures of pornographic gambling, which conforms to the ant open audit standard .

note:

The application name and application icon will be reviewed when the application is launched, so it is recommended that you understand the relevant review rules before configuring .

 

【Add application function】

Developers can add the functions they need to the " function list " during the development process .

Different functions will have different use conditions. If the use condition of a function is to sign a contract, the user needs to sign the corresponding product before using this function.

The signing method of self-developed applications and third-party applications is slightly different. For specific signing methods, please refer to the  signing function .
 

Please note the difference between developers and users here:

  • Developer : The developer (or enterprise) of the application (function or service);
  • User : The person (or enterprise) who purchases and uses the application (function or service).

When a developer uses an application developed by himself, the two identities of the developer and the user coincide.

 

[Configure the application environment]

Developers need to refer to the configuration content:

Field Name

Field description

Application Gateway

(Corresponding to Figure 1 below)

Optional field for receiving Alipay asynchronous notifications . For example, in word-of-mouth store opening, this gateway needs to be configured to receive passive notifications from the developer's store ; developers fill in as needed.

Authorized callback address

(Corresponding to Figure 2 below)

Callback address after third-party authorization or user information authorization . The value of redirect_uri configured in the authorization link must be consistent with this value (eg https://www.alipay.com).

 

Note :

When the address is filled in, the system will automatically perform a security check. For details, please refer to the security check .

RSA (SHA256) key

(Corresponding to Figure 3 below)

The developer must ensure that the private key used in the interface matches the public key here, otherwise the interface cannot be called. You can refer to the key generation and configuration , and the interface parameter sign_type = RSA2.

RSA (SHA1) key

(Corresponding to Figure 4 below)

Same as above, and the interface parameter sign_type = RSA.

For the interface, please refer to the following figure:

 

Please refer to the signature section for a detailed tutorial on key generation and configuration


note:

  • You must fill in the "Interface Signing Method" (only one signing method is required) before you can submit for review.
  • There is a one-to-one correspondence between the key and the application (APPID), that is, the developer needs to set a key for each application under the name, and the keys of different applications cannot be mixed.

 

【View AppID】

After the application is created, the open platform will generate an application unique identifier (APPID) for your application. Only through the APPID can the interface capabilities of the open product be called. Developers can view the APPID of all applications under this account by going to  Development Center  > Developer Overview , as shown in the following figure:  

110.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Published 162 original articles · won 30 · 90,000 views +

Guess you like

Origin blog.csdn.net/ScorpC/article/details/100820994