Home > Net >  .net WeChat sweep yards pay a <err_code_des> <! [CDATA [WeChat order number illegal]]> &
.net WeChat sweep yards pay a <err_code_des> <! [CDATA [WeChat order number illegal]]> &

Time:09-20

To generate an order number with the inside of the official document code, why to this wrong?

CodePudding user response:

Do you think what kind of gods can according to your word to help you troubleshoot the problem?

CodePudding user response:

Check whether the order number format is wrong, or in the system is not the only,
Merchants system internal order number to 32 characters, only Numbers, upper and lower case letters _ - | * and only under the same merchant number,

CodePudding user response:

I interrupt point checked, I generated the order number is less than the official document inside a digit, but not modify, I use the inside of the official development documentation demonstrating order number query, suggests that the order does not exist, I changed myself, still won't do,

CodePudding user response:

Public static string GenerateOutTradeNo ()
{


Var ran=new Random ();

Return the string. Format (" {0} {1} {2} ", WxPayConfig. GetConfig () GetMchID (), a DateTime. Now. The ToString (" yyyyMMddHHmmss "), and ran. The Next (999));
}
Generated by the order number is less than the official document inside a digital

CodePudding user response:

You should not be compared to the document character length, but to check their attestation algorithm, isn't it wrong signature,

CodePudding user response:

But also without the signature error,

CodePudding user response:

Problem solved, the parameters of the query was wrong, there is a problem, and payment mode 2, resultNotify. ProcessNotify (); Inside you revised code changes,

CodePudding user response:

Ran. Next (999) this if you generate a 100 within not less? And generated is no more than 999, 999 is not produce, with 1000 more comfortable,

Should
Ran. Next (100100)
  • Related