| | |
| | | * @return JSONObject |
| | | * @throws Exception |
| | | */ |
| | | public JSONObject createPayment(String orderNo, Integer payChannel, String payAmt, |
| | | public static JSONObject createPayment(String orderNo, Integer payChannel, String payAmt, |
| | | String goodsTitle, String goodsDesc, String deviceIp, String openId, |
| | | String notifyUrl) throws Exception { |
| | | JSONObject data = new JSONObject(); |
| | |
| | | * @param orderNo 订单号 |
| | | * @return |
| | | */ |
| | | public boolean refund(String paymentId, String orderNo) throws Exception { |
| | | public static boolean refund(String paymentId, String orderNo) throws Exception { |
| | | JSONObject data = new JSONObject(); |
| | | data.put("payment_id", paymentId); |
| | | data.put("order_no", orderNo); |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public boolean merchantPay(String orderNo, String payAmt, String cardName, String cardId, |
| | | public static boolean merchantPay(String orderNo, String payAmt, String cardName, String cardId, |
| | | String cardType) |
| | | throws Exception { |
| | | JSONObject data = new JSONObject(); |