PHP makes payment interface for app
阿神
阿神 2017-05-16 13:00:33
0
3
476

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?

阿神
阿神

闭关修行中......

reply all(3)
我想大声告诉你

I have done paypal and globalcollect payments. These APP-side payments can be roughly summarized as:

  1. The first thing the backend needs to do is to verify the legitimacy of the order

  2. 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.

  3. 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.

  4. 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,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template