To make Alipay and WeChat payment on the app side, what does PHP need to do? That ios said that the PHP backend needs to be configured. I don’t understand what it means. Can someone please help me?
I have done paypal and globalcollect payments. These APP-side payments can be roughly summarized as:
The first thing the backend needs to do is to verify the legitimacy of the order
Provide order details such as order number, order amount, currency symbol, order payment address, etc. to the front end to allow users to complete payment.
After receiving the successful payment message from the front desk, it will first request paypal or globalcollect third-party excuse to confirm whether the payment was successful, confirm the payment amount, whether the currency matches the order in the database, etc.
After all tests are correct, modify the order status
In general, APP payment mainly completes the entire payment on the APP side, and the back-end only provides information and confirmation of various data before storage. So you just need to cooperate with the front end.
The app is responsible for initiating payment based on the demo. As for the order amount, order number, and description required for initiation, these are all given by your interface. After the payment is completed, the payer's server will feed back the payment results to the payer, commonly known as callback. This callback address is used to receive the payment results, modify the order status based on the results, etc., and you need to write it here.
php, completed, unified ordering, details can be found in the unified ordering of WeChat payment, which means passing parameters, generating a signature, and giving it to the app. You can use tools to detect the signature,
Fill in the callback address, and the app will start the payment. After the payment is successful, it will give you the callback address data, verify the order, and modify the order status. The logic of WeChat and Alipay is similar,
I have done paypal and globalcollect payments. These APP-side payments can be roughly summarized as:
The first thing the backend needs to do is to verify the legitimacy of the order
Provide order details such as order number, order amount, currency symbol, order payment address, etc. to the front end to allow users to complete payment.
After receiving the successful payment message from the front desk, it will first request paypal or globalcollect third-party excuse to confirm whether the payment was successful, confirm the payment amount, whether the currency matches the order in the database, etc.
After all tests are correct, modify the order status
In general, APP payment mainly completes the entire payment on the APP side, and the back-end only provides information and confirmation of various data before storage. So you just need to cooperate with the front end.
The app is responsible for initiating payment based on the demo. As for the order amount, order number, and description required for initiation, these are all given by your interface.
After the payment is completed, the payer's server will feed back the payment results to the payer, commonly known as callback. This callback address is used to receive the payment results, modify the order status based on the results, etc., and you need to write it here.
php, completed, unified ordering, details can be found in the unified ordering of WeChat payment, which means passing parameters, generating a signature, and giving it to the app. You can use tools to detect the signature,
Fill in the callback address, and the app will start the payment. After the payment is successful, it will give you the callback address data, verify the order, and modify the order status. The logic of WeChat and Alipay is similar,