Javascript-which callback value is used to update the order status after the payment is successful in WeChat payment V3?

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.