调用自己的统一下单接口后,将返回的报文放到
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"}
请问是什么问题,连的正式环境
WXPayConfigImpl wxPayConfig = new WXPayConfigImpl (Appid (), rgetMchId (),getAppKey ());
appkey用的是,微信商户平台-->账户中心-->API安全-->设置API密钥中的信息,还是应该有用开放平台中的AppSecret?