|
|
|
@@ -36,6 +36,8 @@ public class WxPay { |
|
|
|
private static final String TRANSFERS_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers"; |
|
|
|
// 查询企业付款 |
|
|
|
private static final String GETTRANSFERINFO_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/gettransferinfo"; |
|
|
|
//商家转账到零钱 |
|
|
|
private static final String MERCHANT_TRANSFER_CHANGE_URL = "https://api.mch.weixin.qq.com/v3/transfer/batches"; |
|
|
|
|
|
|
|
// 查询代金券批次 |
|
|
|
private static final String GETCOUPONSTOCK_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/query_coupon_stock"; |
|
|
|
@@ -211,8 +213,8 @@ public class WxPay { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 企业付款 |
|
|
|
* https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2 |
|
|
|
*企业付款到零钱:https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2, |
|
|
|
*微信后来改为 商家转账到零钱 产品 |
|
|
|
* @param params |
|
|
|
* 请求参数 |
|
|
|
* @param certPath |
|
|
|
@@ -224,7 +226,7 @@ public class WxPay { |
|
|
|
public static String transfers(Map<String, String> params, String certPath, String certPassword) { |
|
|
|
return WxPay.doPostSSL(TRANSFERS_URL, params, certPath, certPassword); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 查询企业付款 |
|
|
|
* https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_3 |
|
|
|
@@ -239,6 +241,20 @@ public class WxPay { |
|
|
|
public static String getTransferInfo(Map<String, String> params, String certPath, String certPassword) { |
|
|
|
return WxPay.doPostSSL(GETTRANSFERINFO_URL, params, certPath, certPassword); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 商家转账到零钱 https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter4_3_1.shtml |
|
|
|
* @param params |
|
|
|
* 请求参数 |
|
|
|
* @param certPath |
|
|
|
* 证书文件目录 |
|
|
|
* @param certPassword |
|
|
|
* 证书密码 |
|
|
|
* @return {String} |
|
|
|
*/ |
|
|
|
public static String merchantTranferChange(Map<String, String> params, String certPath, String certPassword) { |
|
|
|
return WxPay.doPostSSL(MERCHANT_TRANSFER_CHANGE_URL, params, certPath, certPassword); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 商户模式下 扫码模式一之生成二维码 |
|
|
|
|