Home > Net >  WeChat pay the payment after the success of the front-end how to know if the callback function imple
WeChat pay the payment after the success of the front-end how to know if the callback function imple

Time:09-22

Process: app launch payment, payment success - WeChat implement the callback url, app how to know if the callback execution success?

CodePudding user response:

The most direct way is to ask whether your server received WeChat callback

CodePudding user response:

In general, the app before the payment, you should put the order record is inserted into the database, the status of unpaid,
Pay for success after the callback, just change the status to paid, don't have a complicated process, avoid the callback on failure,

As for callback, that was to be WeChat, can only say that the callback is the default this process successfully,
The callback must be logged in to facilitate tracing back to bring up the question situation,
Pay a success, the callback execution is not successful, none of WeChat business, and the failure rate is very low (if just change the order status, unless the database can't collapse or connection is possible), a problem you also have no loss, it is ok to can be traced,

CodePudding user response:

Callback when access to the server, the server side state of corresponding data processing, this state, you can always read the server changed said pay for success
  •  Tags:  
  • C#
  • Related