From 399f4f01c3dbb5dba137e5e8210a15ac68973eaf Mon Sep 17 00:00:00 2001 From: Kexian Zhong Date: Fri, 8 Mar 2019 13:32:39 +0800 Subject: [PATCH] pay request for JSAPI noncestr should be rand --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ea0eb5..1fa9696 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ r = WxPay::Service.generate_app_pay_req params # required fields params = { prepayid: '1101000000140415649af9fc314aa427', # fetch by call invoke_unifiedorder with `trade_type` is `JSAPI` - noncestr: '1101000000140429eb40476f8896f4c9', # must same as given to invoke_unifiedorder + noncestr: SecureRandom.hex(16), } # call generate_js_pay_req -- libgit2 0.21.0