| | |
| | | * @param money |
| | | * @return |
| | | */ |
| | | public static String getVipChargeAlipayForm(String id, String goodsTitle, String orderNo, BigDecimal money) { |
| | | public static String getVipChargeAlipayForm(String id, String goodsTitle, String orderNo, BigDecimal money,String notifyUrl,String returnUrl) { |
| | | try { |
| | | String returnUrl = getPaySuccessUrl(id); |
| | | String notifyUrl = Constant.HOST + "/BuWan/alipay/pay"; |
| | | AlipayAppInfo appInfo = getAlipayApp(); |
| | | String form = AlipayH5PayUtil.createOrderForm(appInfo, orderNo, money, goodsTitle, returnUrl, notifyUrl); |
| | | return form; |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public static String getPaySuccessUrl(String id) { |
| | | return "http://vip.ysdq.yeshitv.com/pay_success.html?id=" + id; |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public static String createWXOrder(String id, String ip, String orderNo, BigDecimal money, String title) throws Exception { |
| | | public static String createWXOrder(String ip, String orderNo, BigDecimal money, String title,String notifyUrl,String returnUrl) throws Exception { |
| | | WXPlaceOrderParams params = new WXPlaceOrderParams(); |
| | | params.setIp(ip); |
| | | params.setOrderNo(orderNo); |
| | | params.setNotifyUrl(Constant.HOST + "/BuWan/wx/pay/vip"); |
| | | params.setNotifyUrl(notifyUrl); |
| | | params.setFee(money); |
| | | params.setBody(title); |
| | | params.setApp(getWXAPP()); |
| | | String returnUrl = "http://vip.ysdq.yeshitv.com/pay_finish.html?id=" + id; |
| | | String payUrl = WXPayV3Util.createH5Order(params, returnUrl); |
| | | return payUrl; |
| | | } |