WeChat payment results repeat notification, how to return parameters to WeChat?

Source: Internet
Author: User
Direct return as written on the development document


  
    
   
    SUCCESS
   
      
   
    OK
   
    
  
   

This XML code does not work, or it repeats the notifications that are received. How to solve it?

Reply content:

Direct return as written on the development document


  
    
   
    SUCCESS
   
      
   
    OK
   
    
  
   

This XML code does not work, or it repeats the notifications that are received. How to solve it?

About the development of payment, recommend to see the official documents and source code. I wasted a lot of time just 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 if the order has been updated before the return XML and the updated order is not processed directly

The most direct is to download the official demo run to see if there is a problem and then against your own code to see that step problem

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

You need to give the address of a callback, and then post it to the data to get on the line should be XML format you yourself parse

If the notification is repeated, ignore it directly.

  • Related Article

    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.