Current location - Quotes Website - Personality signature - Python+ Alipay Alipay Payment Access (Sandbox Test)
Python+ Alipay Alipay Payment Access (Sandbox Test)
According to my own understanding and development, there may be some logical problems in the writing process. Welcome to point out.

This paper mainly talks about sandbox access, and formal application needs to register application steps. If you want to access regular applications, I suggest you open the sandbox first. The first reason is that the official application is to change appid, and the second reason is that the official application is real money! !

To debug Alipay payment, you need to register on Alipay open platform and settle in as a "self-help developer". The link is/platform/home.htm.

Need to fill in the details for the first time-note: switch to the self-developed developer.

After improving personal information, you can see the "sandbox" service in the personal management background.

Note: Sandbox provides Alipay with a test environment for debugging payment, in which the payment process can be simulated and debugged.

The specific location is as follows: Developer Center-Home Page

Click on R&D service-after entering the sandbox, you can see the test application provided by Alipay in the sandbox application options.

Note: when your website is online, you need to apply for an application on the open platform; And fill in the relevant information for review before using the payment function; Sandbox applications provide Alipay with applications for developers to test.

Signature verification involving requests and responses in the payment process;

Enter openssl in the linux terminal to enter the interactive environment.

RSA key usage

Public key encryption/private key decryption

Private key signature/public key verification

Click the sandbox application to display the setting/viewing of the RSA2 key in the information page.

After submitting our public key, the pop-up box will display Alipay public key; You need to copy and save the public key;

The saving process is as follows:

Payment schedule