Closed Javen205 closed 7 years ago
此问题是没有给mJPayListener赋值,下版本会修复,修改方法如下
mJPayListener
public void startWXPay(String appId,String partnerId,String prepayId, String nonceStr,String timeStamp,String sign,JPayListener listener){ mJPayListener = listener; init(appId); if (!checkWx()) { if(listener != null) { listener.onPayError(JPay.WEIXIN_VERSION_LOW,"未安装微信或者微信版本过低"); } return; } PayReq request = new PayReq(); request.appId = appId; request.partnerId = partnerId; request.prepayId= prepayId; request.packageValue = "Sign=WXPay"; request.nonceStr=nonceStr; request.timeStamp= timeStamp; request.sign= sign; mIWXAPI.sendReq(request); }
问题已解决,请使用最新版本。
此问题是没有给
mJPayListener
赋值,下版本会修复,修改方法如下