- IOS 支付签名验证失败,安卓可以
下单后端只返回了订单号,调起支付其余参数有前端处理,安卓同样的方法可以支付,但是ios不可以,支付验真失败; 签名工具验证成功; 时间戳,随机数必须与下单相同吗??? [代码]// IOS[代码] [代码]PayReq *request = [[[PayReq alloc] init] autorelease];[代码] [代码] [代码][代码]request.partnerId = @[代码][代码]"1488**7822"[代码][代码];[代码][代码] [代码][代码]request.prepayId= prepayId;[代码][代码] [代码][代码]request.[代码][代码]package[代码] [代码]= @[代码][代码]"Sign=WXPay"[代码][代码];[代码][代码] [代码][代码]request.nonceStr= [self randomStringWithLength:[代码][代码]32[代码][代码]];[代码][代码] [代码][代码]request.timeStamp= [self getNowTime];[代码][代码] [代码] [代码] [代码][代码]NSString* stringA = [NSString stringWithFormat:@[代码][代码]"appid=%@&noncestr=%@&package=%@&partnerid=%@&prepayid=%@×tamp=%d&key=***************"[代码][代码], WXPatient_App_ID, request.nonceStr, request.[代码][代码]package[代码][代码], request.partnerId, request.prepayId, (unsigned [代码][代码]int[代码][代码])request.timeStamp];[代码][代码] [代码] [代码] [代码][代码]request.sign= [self stringToMD5:stringA];[代码][代码] [代码][代码]NSLog(@[代码][代码]"%@, sign=%@"[代码][代码], stringA,request.sign);[代码][代码] [代码][代码][WXApi sendReq:request];[代码] [代码] [代码] [代码][代码] appid=wxc3500fb47****157&noncestr=tEnYIqCxFxmDRDt4XVjtsh2iXJX8yybg&package=Sign=WXPay&partnerid=1488**7822&prepayid=wx2216544109200*****abe351432201400×tamp=1569142481&key=c368c4d*******, sign=71ECBB450047F4C83184FB4F50C1D77D [代码] [代码]// JAVA(可行) PayReq request = new PayReq(); request.appId = APP_ID; request.partnerId = "1488**7822"; request.prepayId = prepayId; request.packageValue = "Sign=WXPay"; request.nonceStr = UUID.randomUUID().toString(); request.timeStamp = Long.toString(System.currentTimeMillis() / 1000); request.sign = sign(request.partnerId, request.prepayId,request.packageValue, request.nonceStr,equest.timeStamp, "c368c4d*********"); wxapi.sendReq(request); 麻烦各位帮忙看一下,谢谢!!!!
2019-09-22 - 支付页面没有商品信息
支付页面没有商品信息,请问是下单有问题吗,还是其他问题?谢谢[图片]
2019-07-25