类 WechatApiProvider
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v3.WechatApiProvider
-
public class WechatApiProvider extends Object
微信支付工具.- 作者:
- youta
-
-
字段概要
字段 修饰符和类型 字段 说明 private WechatPayClientwechatPayClient微信支付客户端.
-
构造器概要
构造器 构造器 说明 WechatApiProvider(WechatPayClient wechatPayClient)Instantiates a new Wechat api provider.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 WechatAllocationApiallocationApi(String tenantId)微信支付分账,基于V2WechatBatchTransferApibatchTransferApi(String tenantId)批量转账到零钱.WechatMarketingBusiFavorApibusiFavorApi(String tenantId)微信支付商家券.WechatPayCallbackcallback(String tenantId)回调.WechatCombinePayApicombinePayApi(String tenantId)合单支付.WechatDirectPayApidirectPayApi(String tenantId)普通支付-直连模式.WechatDiscountCardApidiscountCardApi(String tenantId)微信支付先享卡.WechatMarketingFavorApifavorApi(String tenantId)代金券.WechatPartnerPayApipartnerPayApi(String tenantId)普通支付-服务商模式.WechatPayScoreApipayScoreApi(String tenantId)微信支付分.WechatPayRedPackApiredpackApi(String tenantId)现金红包,基于V2WechatPayTransfersApitransfersApi(String tenantId)企业付款到零钱,目前不包括到银行卡,基于V2
-
-
-
字段详细资料
-
wechatPayClient
private final WechatPayClient wechatPayClient
微信支付客户端.
-
-
构造器详细资料
-
WechatApiProvider
public WechatApiProvider(WechatPayClient wechatPayClient)
Instantiates a new Wechat api provider.- 参数:
wechatPayClient- the wechat pay client
-
-
方法详细资料
-
favorApi
public WechatMarketingFavorApi favorApi(String tenantId)
代金券.- 参数:
tenantId- the tenant id- 返回:
- the wechat marketing favor api
-
directPayApi
public WechatDirectPayApi directPayApi(String tenantId)
普通支付-直连模式.- 参数:
tenantId- the tenant id- 返回:
- the wechat pay api
-
partnerPayApi
public WechatPartnerPayApi partnerPayApi(String tenantId)
普通支付-服务商模式.- 参数:
tenantId- the tenant id- 返回:
- the wechat pay api
-
combinePayApi
public WechatCombinePayApi combinePayApi(String tenantId)
合单支付.- 参数:
tenantId- the tenant id- 返回:
- the wechat combine pay api
-
payScoreApi
public WechatPayScoreApi payScoreApi(String tenantId)
微信支付分.- 参数:
tenantId- the tenant id- 返回:
- the wechat pay score api
-
discountCardApi
public WechatDiscountCardApi discountCardApi(String tenantId)
微信支付先享卡.- 参数:
tenantId- the tenant id- 返回:
- the wechat discount card api
-
busiFavorApi
public WechatMarketingBusiFavorApi busiFavorApi(String tenantId)
微信支付商家券.- 参数:
tenantId- the tenant id- 返回:
- the wechat discount card api
-
batchTransferApi
public WechatBatchTransferApi batchTransferApi(String tenantId)
批量转账到零钱.批量转账到零钱提供商户同时向多个用户微信零钱转账的能力。商户可以使用批量转账到零钱用于费用报销、员工福利发放、合作伙伴货款或服务款项支付等场景,提高转账效率。
- 参数:
tenantId- the tenant id- 返回:
- the WechatBatchTransferApi
-
callback
public WechatPayCallback callback(String tenantId)
回调.需要处理白名单、幂等性问题。
- 参数:
tenantId- the tenant id- 返回:
- the wechat pay callback
-
redpackApi
public WechatPayRedPackApi redpackApi(String tenantId)
现金红包,基于V2- 参数:
tenantId- the tenant id- 返回:
- wechat pay redpack api
-
transfersApi
public WechatPayTransfersApi transfersApi(String tenantId)
企业付款到零钱,目前不包括到银行卡,基于V2- 参数:
tenantId- the tenant id- 返回:
- wechat pay redpack api
-
allocationApi
public WechatAllocationApi allocationApi(String tenantId)
微信支付分账,基于V2- 参数:
tenantId- the tenant id- 返回:
- wechat allocation api
-
-