- APP支付报错:appid未关联paySIgnKey?
沙箱环境,调用统一下单接口后得到prepay_id, public Map
fillResponseData(Map reqData) throws Exception { reqData.put("appid", config.getAppID()); reqData.put("partnerid", config.getMchID()); reqData.put("noncestr", WXPayUtil.generateNonceStr()); reqData.put("package", "Sign=WXPay"); String timestamp = String.valueOf(new Date ().getTime()/1000); reqData.put("timestamp", timestamp); reqData.put("sign", WXPayUtil.generateSignature(reqData, config.getKey(), this.signType)); log.debug ("---fillResponseData={}",reqData); return 将以上信息返回到APP端, 调用 api.sendReq(req); Paytivity.this.finish(); 报错:appid未关联paySIgnKey?请问是什么问题导致的 2020-08-28 - api.sendReq(req)调用后报错invalid appkey?
调用自己的统一下单接口后,将返回的报文放到 PayReq req = new PayReq(); req.appId = data.getString(Constants.appid);//appid req.partnerId = data.getString("mch_id");//商户ID req.prepayId = data.getString("prepay_id");//预支付交易会话ID req.nonceStr = data.getString("nonce_str");//随机字符串 req.timeStamp = System.currentTimeMillis() + "";//时间戳 req.packageValue = "WXPay"; req.extData = "app data"; // optional //签名 req.sign = data.getString("sign"); //发送数据到微信支付 api.sendReq(req); PayActivity.this.finish(); Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"} 请问是什么问题,连的正式环境
2020-08-27 - app统一下单接口报证书错误CertificateException?
已经申请到了mchId与appid后,通过https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey接口,拿到了沙箱环境的密钥。 java通过demo提供的的WXPayExample,调用统一下单接口:https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder 一切正常并返回报文如下: nonce_str>111111111111111111/nonce_str> device_info>testuuid/device_info> XXXXXXXX 111111111111111 trade_type>APP/trade_type> err_code>SUCCESS/err_code> err_code_des>ok/err_code_des> return_msg>OK/return_msg> result_code>SUCCESS/result_code> mch_id>111111111/mch_id> return_code>SUCCESS/return_code> prepay_id>wx1111111111111/prepay_id> appid,mch_id,prepay_id,nonce_str,sign已替换。 将同样的代码放到springboot中执行时报错如下: 2020-08-18 21:16:19.006 DEBUG 7 --- [io-10000-exec-1] io.sdk.wxpay.WXPayRequest : ---url=https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder 2020-08-18 21:16:19.280 INFO 7 --- [pool-3-thread-1] wxpay java sdk : try get remain report msg javax.net.ssl.SSLHandshakeException: No X509TrustManager implementation available at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source) at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) 。。。。 at io.sdk.wxpay.WXPayRequest.requestOnce(WXPayRequest.java:111) at io.sdk.wxpay.WXPayRequest.request(WXPayRequest.java:130) at io.sdk.wxpay.WXPayRequest.requestWithoutCert(WXPayRequest.java:235) at io.sdk.wxpay.WXPay.requestWithoutCert(WXPay.java:160) at io.sdk.wxpay.WXPay.unifiedOrder(WXPay.java:366) at io.sdk.wxpay.WXPay.unifiedOrder(WXPay.java:342) 现在不知道是什么原因导致统一下单接口不能正常返回
2020-08-18 - app支付沙箱appid有测试账号吗
你好,已经申请了mch_id,想用沙箱测一下流程。申请支付类型为APP的,appid也很麻烦啊,没有一个可以测试的appid与key吗,
2020-07-31 - 请问商户得到“微信支付系统”prepay_id后,返回商户APP客户端报文内容是什么
https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_3# 图8.6 APP支付时序图,第七步,具体的报文格式是什么样的
2020-07-16