CodePudding user response:
The most direct way is to ask whether your server received WeChat callbackCodePudding 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