WeChat JSAPI payment report bizarre missing parameter error

Source: Internet
Author: User
Using Jsapi V3 's demo page, click the Pay button to report the error: "2 call to pay Jsapi missing parameters: $key 0$get_brand_wcpay_request:fail", what is this $key0$?? I don't know what parameters are missing, so the feedback is too bad.

Reply content:

Using Jsapi V3 's demo page, click the Pay button to report the error: "2 call to pay Jsapi missing parameters: $key 0$get_brand_wcpay_request:fail", what is this $key0$?? I don't know what parameters are missing, so the feedback is too bad.

I have the same problem, the problem is that the timestamp parameter in the Payment API interface on the Web side, must be a string type, but PHP default generated timestamp is the int type. The solution is to modify the next lib/wxpay.data.php about 2731 lines Settimestamp method, revision to$this->values['timeStamp'] = (string)$value;
Can

Show me the code.

In addition the JS payment process is:
1. The server-side call interface generates a pre-paid order where a callback address is required (unified next-to-single interface)
2. Call method for generating JSAPI based on interface return data
3. Active or user Click to trigger the method (Web page end of the payment API)
4. The user pays successfully, JS returns to pay the success or not (the document says that the return result is not guaranteed to be completely reliable)
5. If payment is successful, the callback address interface (notification interface document) will be invoked on your own initiative.

Note: Pay a variety of pits, look at official documents, can not directly make, there are problems more Google.

The official SDK is available, but the configuration is cumbersome, basically the process is similar to @tking, in addition, I am also developing a third-party SDK, the payment section is testing:

Http://github.com/thenbsp/wechat

Hello, I also met the same problem, ask how the final solution, thank you

My payment solution was initiated in a jssdk way.

Is there a solution to this problem? I also met ~ Check the parameters, settings are no problem ~

That's my problem, too.

  • 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.