When should the callback url be written? The document does not explain this in detail. WeChat will only access the callback url if the customer's payment is successful. If the payment fails, it will not access it.
I think you may not have read the document carefully. Attached is the relevant payment business process sequence diagram.
This sequence diagram explains clearly: after the user confirms the payment and enters the password, and the WeChat verification authorization is successful, the merchant will be notified of the payment result asynchronously (note that this includes two situations: successful payment and failed payment) , merchants update their order business logic based on the parameters returned by WeChat.
After you make the payment on your mobile phone and see that the payment is completed, this can only be regarded as the first step. The callback will not be performed until the payment is completed, which means that the payment transaction flow is pushed to the callback interface.
Yes, set the callback url when paying. After the payment is successful, WeChat will actively call this url and then process the logic of updating the order
I think you may not have read the document carefully. Attached is the relevant payment business process sequence diagram.
This sequence diagram explains clearly: after the user confirms the payment and enters the password, and the WeChat verification authorization is successful, the merchant will be notified of the payment result asynchronously (note that this includes two situations: successful payment and failed payment) , merchants update their order business logic based on the parameters returned by WeChat.
After you make the payment on your mobile phone and see that the payment is completed, this can only be regarded as the first step. The callback will not be performed until the payment is completed, which means that the payment transaction flow is pushed to the callback interface.
Yes, set the callback url when paying. After the payment is successful, WeChat will actively call this url and then process the logic of updating the order