WeChat payment: the partner or prepay_id parameter in the package is null.

Source: Internet
Author: User
Baidu: Some people say that the merchant's payment number is wrong, saying that the payment number is 8 bits, but I only find 10 bits. I printed the prepay_id blank, and Baidu has no fruit, please give me some advice.

  • Baidu: Some people say that the merchant's payment number is incorrect. They say that the payment number is 8 bits, but I only find 10 bits.

  • I printed the prepay_id out as null, but Baidu has no fruit. So I am here. Please give me some advice.

Reply content:

  • Baidu: Some people say that the merchant's payment number is incorrect. They say that the payment number is 8 bits, but I only find 10 bits.

  • I printed the prepay_id out as null, but Baidu has no fruit. So I am here. Please give me some advice.

My own problem, wrong KEY-Really disgusting

By the way, I would like to summarize some of my feelings about payment.
1. It is necessary to have four parameters

  1. APPID -- unique public ID

  2. MCHID -- Merchant payment ID

  3. KEY-you need to set it on the merchant's platform-account settings-API Security

  4. APPSECRET -- can be found in account information

In addition to the above two key points
1. Set the authorization directory example: starting the requested page url to http://www.xxx.com/weixin/pay/payment.php? XXXXX, then
Enter the directory http://www.xxxcom/weixin/pay /.
2. To implement the function, you need to obtain the user's code value. For webpage jump form, go to the public platform-Developer Center-configuration item-webpage authorization to obtain the user's basic information and configure your domain name.

Other problems are not encountered yet.

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.