收藏
回答

微信小程序支付成功,回调失败,查询log发现支付时的sign和回调时的sign 不一致?

 

微信支付:

2020-03-26 11:20:04.942 DEBUG 1 返回结果:RPCResult(rpcStatus=SUCCESS, content=BizResult(bizCode=1001, bizMsg=成功, data=WechatCreateOrder(appid=wxXXXX, partnerid=null, prepayid=null, pkg=prepay_id=wx261120049085896f480596031228259400, noncestr=907135a772584d53ae66ec4e6334ec43, timestamp=1585192804, sign=F53B044145A99C26CC35D3F3A8DA68B6, signType=MD5)))

微信支付回调:

2020-03-26 11:20:15.681 WARN 1 --- [0881-thread-200] c.t.p.w.s.WeixinService : 微信异步通知结果验签失败,订单id(110135115346343404),交易类型(JSAPI)

2020-03-26 11:20:15.681 请求参数:WechatPayNotify(return_code=SUCCESS, return_msg=null, appid=wxXXXX, mch_id=15XXXX, nonce_str=FkTspc1nqUIs3GEj, sign=3E6C42ACF2622643B0EB54DA62D47A41, sign_type=null, result_code=SUCCESS, err_code=null, err_code_des=null, device_info=null, openid=ohe0M5MpeYVHsIPSnjJetXwoJXwA, is_subscribe=N, sub_openid=null, sub_is_subscribe=null, trade_type=JSAPI, bank_type=PAB_CREDIT, total_fee=20000, settlement_total_fee=null, fee_type=CNY, cash_fee=19900, cash_fee_type=null, coupon_fee=100, coupon_count=1, transaction_id=4200000483202003267184472409, out_trade_no=110135115346343404, attach=icmsIPaymentRecordHandler, time_end=20200326112014)

appid 都相同

支付的时候signType=MD5 ,回调的时候 sign_type=null

支付的时候 sign=F53B044145A99C26CC35D3F3A8DA68B6

回调的时候 sign=3E6C42ACF2622643B0EB54DA62D47A41

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签