类 WechatCombinePayApi


  • public class WechatCombinePayApi
    extends AbstractApi
    微信合单支付.
    作者:
    youta
    • 构造器详细资料

      • WechatCombinePayApi

        public WechatCombinePayApi​(WechatPayClient wechatPayClient,
                                   String tenantId)
        Instantiates a new Abstract api.
        参数:
        wechatPayClient - the wechat pay client
        tenantId - the tenant id
    • 方法详细资料

      • appPay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> appPay​(CombinePayParams combinePayParams)
        合单下单-APP支付API

        使用合单支付接口,用户只输入一次密码,即可完成多个订单的支付。目前最多一次可支持50笔订单进行合单支付。

        注意: • 订单如果需要进行抽佣等,需要在合单中指定需要进行分账(profit_sharing为true);指定后,交易资金进入二级商户账户,处于冻结状态,可在后续使用分账接口进行分账,利用分账完结进行资金解冻,实现抽佣和对二级商户的账期。

        参数:
        combinePayParams - the combine pay params
        返回:
        the wechat response entity
      • jsPay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> jsPay​(CombinePayParams combinePayParams)
        合单下单-JSAPI支付/小程序支付API

        使用合单支付接口,用户只输入一次密码,即可完成多个订单的支付。目前最多一次可支持50笔订单进行合单支付。

        注意: • 订单如果需要进行抽佣等,需要在合单中指定需要进行分账(profit_sharing为true);指定后,交易资金进入二级商户账户,处于冻结状态,可在后续使用分账接口进行分账,利用分账完结进行资金解冻,实现抽佣和对二级商户的账期。

        参数:
        combinePayParams - the combine pay params
        返回:
        wechat response entity
      • combinePayFunction

        private org.springframework.http.RequestEntity<?> combinePayFunction​(WechatPayV3Type type,
                                                                             CombinePayParams params)
        Combine pay function request entity.
        参数:
        type - the type
        params - the params
        返回:
        the request entity
      • h5Pay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> h5Pay​(CombineH5PayParams combineH5PayParams)
        合单下单-H5支付API.

        使用合单支付接口,用户只输入一次密码,即可完成多个订单的支付。目前最多一次可支持50笔订单进行合单支付。

        注意: • 订单如果需要进行抽佣等,需要在合单中指定需要进行分账(profit_sharing为true);指定后,交易资金进入二级商户账户,处于冻结状态,可在后续使用分账接口进行分账,利用分账完结进行资金解冻,实现抽佣和对二级商户的账期。

        参数:
        combineH5PayParams - the combine h 5 pay params
        返回:
        the wechat response entity
      • combinePayFunction

        private org.springframework.http.RequestEntity<?> combinePayFunction​(WechatPayV3Type type,
                                                                             CombineH5PayParams params)
        Combine pay function request entity.
        参数:
        type - the type
        params - the params
        返回:
        the request entity
      • nativePay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> nativePay​(CombinePayParams combinePayParams)
        合单下单-Native支付API.

        使用合单支付接口,用户只输入一次密码,即可完成多个订单的支付。目前最多一次可支持50笔订单进行合单支付。

        注意: • 订单如果需要进行抽佣等,需要在合单中指定需要进行分账(profit_sharing为true);指定后,交易资金进入二级商户账户,处于冻结状态,可在后续使用分账接口进行分账,利用分账完结进行资金解冻,实现抽佣和对二级商户的账期。

        参数:
        combinePayParams - the combine pay params
        返回:
        the wechat response entity
      • queryTransactionByOutTradeNo

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryTransactionByOutTradeNo​(String combineOutTradeNo)
        合单查询订单API.
        参数:
        combineOutTradeNo - the combine out trade no
        返回:
        the wechat response entity
      • close

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> close​(CombineCloseParams combineCloseParams)
        合单关闭订单API.

        合单支付订单只能使用此合单关单api完成关单。

        微信服务器返回 204。

        参数:
        combineCloseParams - the combine close params
        返回:
        the wechat response entity