Current location - Quotes Website - Personality signature - Payment to Alipay parameter
Payment to Alipay parameter
1. create a merchant order. Use the interface to send an order creation request to Alipay, including information such as order number, amount, payer and payee.

2. generate a signature. Assemble the request parameters into a string to be signed according to certain rules, and then sign it with a key. The signature algorithm is generally RSA or RSA2.

3. make a request to AliPay. Send the signed request parameters and signature value to Alipay, and wait for Alipay's response.

4. handle AliPay response. According to the results returned by Alipay, judge whether the payment is successful or not, and record relevant information locally.