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) |
static Hashtable<String,WechatPayUtil> |
getInstances() |
String |
getPublicKey()
获取RSA公钥
|
WechatRefundResult |
refund(WechatRefund refund)
退款申请
|
static WechatPayUtil |
register(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 Hashtable<String,WechatPayUtil> getInstances()
public static WechatPayUtil getInstance()
public static WechatPayUtil register(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 © 2023. All rights reserved.