类 WechatPayUtil
java.lang.Object
org.anyline.wechat.pay.util.v3.WechatPayUtil
-
字段概要
字段 -
构造器概要
构造器构造器说明WechatPayUtil(String key, org.anyline.entity.DataRow config) WechatPayUtil(WechatPayConfig config) -
方法概要
修饰符和类型方法说明org.anyline.entity.DataRowcallUpParam(String appid, String prepayid) JSAPI调起支付所需参数解密数据static WechatPayUtilstatic WechatPayUtilgetInstance(String key) static Hashtable<String, WechatPayUtil> getPrivateKey(String path) 获取私钥refund(WechatRefund refund) 退款申请static WechatPayUtilsign(byte[] message) 签名transactions(WechatPayConfig.TRADE_TYPE type, WechatPrePayOrder order) 统一下单transfer(WechatEnterpriseTransfer transfer) 企业付款unifiedorder(WechatPayConfig.TRADE_TYPE type, WechatPrePayOrder order) boolean
-
字段详细资料
-
log
protected static final org.slf4j.Logger log
-
-
构造器详细资料
-
WechatPayUtil
-
WechatPayUtil
-
-
方法详细资料
-
getInstances
-
getInstance
-
reg
-
getInstance
-
getConfig
-
unifiedorder
-
transactions
统一下单- 参数:
type- 支付方式order- 订单- 返回:
- 结果主要包含prepay_id
-
callUpParam
JSAPI调起支付所需参数- 参数:
appid- appidprepayid- 预支付id(由统一下单接口返回)- 返回:
- DataRow
-
refund
退款申请- 参数:
refund- refund- 返回:
- WechatRefundResult
- 抛出:
Exception- 异常 Exception
-
transfer
企业付款- 参数:
transfer- transfer- 返回:
- WechatEnterpriseTransferResult
-
sign
签名- 参数:
message- message- 返回:
- String
- 抛出:
Exception- 异常 Exception
-
verifySign
public boolean verifySign() -
getPrivateKey
获取私钥- 参数:
path- 文件地址- 返回:
- PrivateKey
- 抛出:
IOException- IOException
-
decrypt
解密数据- 参数:
associated- 附加数据包nonce- 加密使用的随机串初始化向量ciphertext- Base64编码后的密文- 返回:
- 明文
- 抛出:
GeneralSecurityException- GeneralSecurityExceptionIOException- IOExceptionException
-