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