类 WechatDirectPayApi


  • public class WechatDirectPayApi
    extends AbstractApi
    普通支付-直连模式.
    作者:
    youta
    • 构造器详细资料

      • WechatDirectPayApi

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

      • appPay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> appPay​(PayParams payParams)
        APP下单API
        参数:
        payParams - the pay params
        返回:
        the wechat response entity
      • jsPay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> jsPay​(PayParams payParams)
        JSAPI/小程序下单API
        参数:
        payParams - the pay params
        返回:
        wechat response entity
      • nativePay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> nativePay​(PayParams payParams)
        Native下单API
        参数:
        payParams - the pay params
        返回:
        wechat response entity
      • h5Pay

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> h5Pay​(PayParams payParams)
        H5下单API
        参数:
        payParams - the pay params
        返回:
        wechat response entity
      • payFunction

        private org.springframework.http.RequestEntity<?> payFunction​(WechatPayV3Type type,
                                                                      PayParams payParams)
      • queryTransactionById

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryTransactionById​(TransactionQueryParams params)
        微信支付订单号查询API
        参数:
        params - the params
        返回:
        the wechat response entity
      • queryTransactionByOutTradeNo

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryTransactionByOutTradeNo​(TransactionQueryParams params)
        商户订单号查询API
        参数:
        params - the params
        返回:
        the wechat response entity
      • close

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> close​(String outTradeNo)
        关单API
        参数:
        outTradeNo - the out trade no
        返回:
        the wechat response entity
      • closeByOutTradeNoFunction

        private org.springframework.http.RequestEntity<?> closeByOutTradeNoFunction​(WechatPayV3Type type,
                                                                                    String outTradeNo)
      • refund

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> refund​(RefundParams refundParams)
        申请退款API
        参数:
        refundParams - the refund params
        返回:
        the wechat response entity
        从以下版本开始:
        1.0.6.RELEASE
      • queryRefundInfo

        public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryRefundInfo​(String outRefundNo)
        查询单笔退款API
        参数:
        outRefundNo - the out refund no
        返回:
        the wechat response entity