WeChat APP payment, the second signature generation problem

Source: Internet
Author: User
The official documentation provides the following document address Step 3: The unified order interface returns the normal prepay_id, and then re-generate the signature according to the signature specification, and then transmit the data to the APP. The fields involved in the signature are appId, partnerId, prepayId, nonceStr, timeStamp, and package. Note: The following is the official document address:

Step 3: The unified order interface returns the normal prepay_id, and then re-generates the signature according to the signature specification, the data is transmitted to the APP. The fields involved in the signature are appId, partnerId, prepayId, nonceStr, timeStamp, and package. Note: The package Value format is Sign = WXPay.

After unified order, the second signature is generated

During the second signature generation, according to the document, the signature string I obtained is as follows:

AppId = wx6492e9ca173be4f0 & nonceStr = hdsrmh5emnk95a3ngtq309ubdbo5qsdb & package = Sign = WXPay & partnerId = 1309045101 & prepayId = timeout & timeStamp = 1456552292

Convert the above string md5 to uppercase and return it to the APP

But the APP always returns the-1 error.

Because I do not write an APP, I only generate signature data and return it to the APP,

According to the parameters, the APP's-1 error should be a signature issue, but I know where the signature is wrong. Please help me!

Reply content:

The following is the official document address:

Step 3: The unified order interface returns the normal prepay_id, and then re-generates the signature according to the signature specification, the data is transmitted to the APP. The fields involved in the signature are appId, partnerId, prepayId, nonceStr, timeStamp, and package. Note: The package Value format is Sign = WXPay.

After unified order, the second signature is generated

During the second signature generation, according to the document, the signature string I obtained is as follows:

AppId = wx6492e9ca173be4f0 & nonceStr = hdsrmh5emnk95a3ngtq309ubdbo5qsdb & package = Sign = WXPay & partnerId = 1309045101 & prepayId = timeout & timeStamp = 1456552292

Convert the above string md5 to uppercase and return it to the APP

But the APP always returns the-1 error.

Because I do not write an APP, I only generate signature data and return it to the APP,

According to the parameters, the APP's-1 error should be a signature issue, but I know where the signature is wrong. Please help me!

1: missing sign
2: packageValue instead of package

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.