I would like to ask if I have used jsapi to call the payment method for apsaradb for V3. the user has successfully paid the payment and the server callback parameter is sent to notify. php. The question is, which value is used to update the order status recorded in the database? I would like to ask if I have used jsapi to call the payment method for apsaradb for V3. the user has successfully paid the payment and the server callback parameter is sent to notify. php. The question is, which value is used to update the order status recorded in the database?
Reply content:
I would like to ask if I have used jsapi to call the payment method for apsaradb for V3. the user has successfully paid the payment and the server callback parameter is sent to notify. php. The question is, which value is used to update the order status recorded in the database?
The out_trade_no field is the unique order ID of the merchant returned by the server. Execute update based on this field !!!
$ UnifiedOrder-> setParameter ("attach", $ request ['id']); // additional data
I put the order id in attach (the name does not seem to be random ). This update is used for callback.
There is no out_trade_no in the order table?
Https://pay.weixin.qq.com/wiki/doc/api/jsapi.php? Chapter = 9_7
The code that adds the Update Status to the SDK has never figured out how to asynchronously update the status.
Can you include your updated status code?