public class WechatPayUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
WechatPayUtil(String key,
org.anyline.entity.DataRow config) |
WechatPayUtil(WechatPayConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.anyline.entity.DataRow |
callUpParam(String appid,
String prepayid)
JSAPI调起支付所需参数
|
WechatPayConfig |
getConfig() |
static WechatPayUtil |
getInstance() |
static WechatPayUtil |
getInstance(String key) |
String |
getPublicKey()
获取RSA公钥
|
WechatRefundResult |
refund(WechatRefund refund)
退款申请
|
static WechatPayUtil |
reg(String key,
org.anyline.entity.DataRow config) |
WechatFissionRedpackResult |
sendRedpack(WechatFissionRedpack pack)
发送裂变红包
|
WechatRedpackResult |
sendRedpack(WechatRedpack pack)
发送红包
|
WechatEnterpriseTransferResult |
transfer(WechatEnterpriseTransfer transfer)
企业付款
|
WechatEnterpriseTransferBankResult |
transfer(WechatEnterpriseTransferBank transfer)
企业付款到银行卡
|
WechatPrePayResult |
unifiedorder(WechatPrePayOrder order)
统一下单
|
public WechatPayUtil(WechatPayConfig config)
public WechatPayUtil(String key, org.anyline.entity.DataRow config)
public static WechatPayUtil getInstance()
public static WechatPayUtil reg(String key, org.anyline.entity.DataRow config)
public static WechatPayUtil getInstance(String key)
public WechatPayConfig getConfig()
public WechatPrePayResult unifiedorder(WechatPrePayOrder order) throws Exception
order - orderException - Exceptionpublic org.anyline.entity.DataRow callUpParam(String appid, String prepayid)
appid - appidprepayid - 预支付id(由统一下单接口返回)public WechatRefundResult refund(WechatRefund refund) throws Exception
refund - refundException - Exceptionpublic WechatRedpackResult sendRedpack(WechatRedpack pack) throws Exception
pack - packException - Exceptionpublic WechatFissionRedpackResult sendRedpack(WechatFissionRedpack pack) throws Exception
pack - packException - Exceptionpublic WechatEnterpriseTransferResult transfer(WechatEnterpriseTransfer transfer)
transfer - transferpublic WechatEnterpriseTransferBankResult transfer(WechatEnterpriseTransferBank transfer)
transfer - transferpublic String getPublicKey()
Copyright © 2022. All rights reserved.