微信NATIVEZ支付一直提示缺少参数

微信支付 文章 2021-03-11 17:01 55 0 全屏看文

微信NATIVEZ支付一直提示缺少参数WeChat NativeZ payment keeps prompting lack of parameters

微信NATIVEZ支付一直提示缺少参数
paramMap.put("appid", WXPayConstants.APP_ID); //appidparamMap.put("mch_id", WXPayConstants.MCH_ID); //商户号paramMap.put("nonce_str", UUIDGenerator.getUUID());//随机字符串paramMap.put("sign_type", "MD5"); //签名类型paramMap.put("device_info", "WEB");paramMap.put("detail", "购买次数产品");paramMap.put("attach", "");paramMap.put("fee_type", "CNY");paramMap.put("body", "购买产品");         //描述paramMap.put("out_trade_no", jsonObject.getString("id")); //商户 后台的贸易单号paramMap.put("total_fee", String.valueOf(payMoney)); //金额必须为整数  单位为分paramMap.put("spbill_create_ip", ip); //本机的IpparamMap.put("product_id", jsonObject.getString("id")); // 二维码中包含的商品IDparamMap.put("trade_type", "NATIVE"); //交易类型paramMap.put("notify_url", WXPayConstants.CALLBACK); //支付成功后,回调地址

paramMap.put ("appid", WXPayConstants.APP_ ID); // appidparamMap.put ("mch_ id", WXPayConstants.MCH_ ID); / / merchant number paramMap.put ("nonce_ str", UUIDGenerator.getUUID ()); / / random string paramMap.put ("sign_ Type "," MD5 "); / / signature type paramMap.put ("device_ info", "WEB"); paramMap.put ("detail", "purchase times product"); paramMap.put ("attach", ""); paramMap.put ("fee_ type", "CNY"); paramMap.put ("body", "purchase product"); / / description paramMap.put ("out_ trade_ no", jsonObject.getString ("Id"); / / the trade order number of the merchant's background paramMap.put ("total_ fee", String.valueOf (paymoney)); / / the amount must be an integer in minutes paramMap.put ("spbill_ create_ IP ", IP); / / local IpparamMap.put ("product_ id", jsonObject.getString ("Id"); / / the items included in the QR code IDparamMap.put ("trade_ / / transaction type paramMap.put ("notify_ url", WXPayConstants.CALLBACK ); / / after successful payment, call back the address

回答:

Memory:

比对开发文档没有问题,一般为签名问题

羡鱼:

检查一下签名工具,大概率是签名的时候参数拼接顺序有问题

半吨先生:

报错截图贴下

-EOF-