Ask a WeChat public account platform to pay questions

Source: Internet
Author: User
Ask a good first

Recently received a project, did not touch before, suddenly paid the piece of the problem, the Jsapi payment interface is Weixinjsbridge.invoke ("Getbrandwcpayrequest" ...). This thing always returns: Get_brand_wcpay_request:fail, and then no more.

I'm going to the public platform. Technical Documents JSAPI Technical documents looked under, look at the foggy, with my project code completely different, later only to know that my project is to pay V2 version, the official website is V3, and then I again in the "Https://pay.weixin.qq.com/wiki /doc/api/jsapi.php?chapter=7_7&index=6 "found a H5 page called JS payment of a document, unfortunately, looks like I call the very similar, but the parameters are not the same, it seems to be V3. Baidu a bit of this keyword "get_brand_wcpay_request:fail", and said the new version does not support this call, but not sure, because the official website did not say can not be used.

So now my situation is simply hopeless, neither know in the end my part of the code can use, also can not find any helpful information, also do not do upgrade payment, I saw the upgrade payment also design a lot of things. Now helpless, seek help, hope to have experience in this area of the predecessors of the Liberal enlighten!

I'm really surprised that I've never seen such a messy technical document, what is this stuff. Too angry.

Reply content:

Ask a good first

Recently received a project, did not touch before, suddenly paid the piece of the problem, the Jsapi payment interface is Weixinjsbridge.invoke ("Getbrandwcpayrequest" ...). This thing always returns: Get_brand_wcpay_request:fail, and then no more.

I'm going to the public platform. Technical Documents JSAPI Technical documents looked under, look at the foggy, with my project code completely different, later only to know that my project is to pay V2 version, the official website is V3, and then I again in the "Https://pay.weixin.qq.com/wiki /doc/api/jsapi.php?chapter=7_7&index=6 "found a H5 page called JS payment of a document, unfortunately, looks like I call the very similar, but the parameters are not the same, it seems to be V3. Baidu a bit of this keyword "get_brand_wcpay_request:fail", and said the new version does not support this call, but not sure, because the official website did not say can not be used.

So now my situation is simply hopeless, neither know in the end my part of the code can use, also can not find any helpful information, also do not do upgrade payment, I saw the upgrade payment also design a lot of things. Now helpless, seek help, hope to have experience in this area of the predecessors of the Liberal enlighten!

I'm really surprised that I've never seen such a messy technical document, what is this stuff. Too angry.

Payment is now divided into V2 version and V3 version, the application for the V2 version before September 10, 2014, after the application for the V3 version. The V3 version of the payment does not have Paysignkey parameters.
Two versions are dependent on the application time, are not convertible, and the code and process are very different.
Now call the JSAPI need to pass permission authentication first, your solution to this problem is to use the JSSDK for JSAPI payment, but the service side of the payment code is still the original.

V2 upgrade V3 not difficult, V3 in the payment parameters less tenpay there key, and then the official language to provide the source code, are feasible. Directly modify the parameters inside to run, if you are C #, you can go to our group to communicate. 217073730

PHP and C # payment website have ready-made demo, change a few parameters can be used. You can try the official demo first to see if it works.
Https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1

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