| | |
| | | * @param notify_url 通知地址 |
| | | * @throws IllegalAccessException |
| | | */ |
| | | public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{ |
| | | /* public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{ |
| | | |
| | | //appID与商户号 |
| | | this.appid = Configure.getGappid(); |
| | |
| | | |
| | | // setNotify_url(notify_url);// 通知地址 |
| | | this.notify_url = notify_url; |
| | | /*trade_type 交易类型JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付,统一下单接口trade_type的传参可参考这里 |
| | | MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口*/ |
| | | *//*trade_type 交易类型JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付,统一下单接口trade_type的传参可参考这里 |
| | | MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口*//* |
| | | |
| | | this.trade_type = trade_type; |
| | | this.openid = openid; |
| | |
| | | this.sign = Signature.getSign(1,toMap()); |
| | | |
| | | } |
| | | |
| | | */ |
| | | /** |
| | | * 预支付请求需要的参数(获取微信统一下单-必填参数)(小程序) |
| | | * 公众账号ID appid (内置) |
| | |
| | | * @param notify_url 通知地址 |
| | | * @throws IllegalAccessException |
| | | */ |
| | | public UnifiedorderReqData(String out_trade_no, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{ |
| | | public UnifiedorderReqData(String out_trade_no, String body, Double total_fee, String notify_url,String trade_type,String openid) throws IllegalAccessException{ |
| | | |
| | | //appID与商户号 |
| | | this.appid = Configure.getXappid(); |
| | |
| | | |
| | | |
| | | // setBody(body);// 商品描述 |
| | | this.body = "小程序支付"; |
| | | this.body = body; |
| | | |
| | | // setOut_trade_no(out_trade_no);// 商户订单号 |
| | | this.out_trade_no = out_trade_no; |