类 WechatApiProvider


  • public class WechatApiProvider
    extends Object
    微信支付工具.
    作者:
    youta
    • 字段详细资料

      • 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