How can I return parameters to WeChat for repeated notifications of WeChat payment results?

Source: Internet
Author: User
The xml code "direct return {code...}" written in the development document does not work and will still receive repeated notifications. How can this problem be solved? Return directly written in the development document


   
   SUCCESS
     
   OK
   
  

This xml Code does not work and will still receive repeated notifications. How can this problem be solved?

Reply content:

Return directly written in the development document


   
   SUCCESS
     
   OK
   
  

This xml Code does not work and will still receive repeated notifications. How can this problem be solved?

For payment development, we recommend you go to the official documentation and source code. I used to waste a lot of time because I didn't read the document carefully. Please refer to the development of payment (PHP ):
http://www.ihuxu.com/blog/wechat-pay-sdk-development/

Determine whether the order has been updated before return xml. The updated order is not processed directly.

The most direct one is to download the official demo and run it to see if there is any problem and then compare it with your own code to see if there is a problem with that step.

Http://www.oschina.net/question/560841_225367

You need to give a callback address, and then retrieve the data it post. It should be in xml format and you can parse it yourself.

If the notification already exists, ignore it.

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.