类 WechatDirectPayApi
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v3.AbstractApi
-
- cn.crushes.cloud.core.pay.wechat.v3.WechatDirectPayApi
-
public class WechatDirectPayApi extends AbstractApi
普通支付-直连模式.- 作者:
- youta
-
-
构造器概要
构造器 构造器 说明 WechatDirectPayApi(WechatPayClient wechatPayClient, String tenantId)Instantiates a new Wechat pay api.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>appPay(PayParams payParams)APP下单APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>close(String outTradeNo)关单APIprivate org.springframework.http.RequestEntity<?>closeByOutTradeNoFunction(WechatPayV3Type type, String outTradeNo)WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>h5Pay(PayParams payParams)H5下单APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>jsPay(PayParams payParams)JSAPI/小程序下单APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>nativePay(PayParams payParams)Native下单APIprivate org.springframework.http.RequestEntity<?>payFunction(WechatPayV3Type type, PayParams payParams)WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>queryRefundInfo(String outRefundNo)查询单笔退款APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>queryTransactionById(TransactionQueryParams params)微信支付订单号查询APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>queryTransactionByOutTradeNo(TransactionQueryParams params)商户订单号查询APIprivate org.springframework.http.RequestEntity<?>queryTransactionFunction(WechatPayV3Type type, TransactionQueryParams params)WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>refund(RefundParams refundParams)申请退款API-
从类继承的方法 cn.crushes.cloud.core.pay.wechat.v3.AbstractApi
billDownload, billResource, client, container, downloadFundFlowBill, downloadTradeBill, Get, Get, getMapper, Patch, Post, Post, tenantId, wechatMetaBean
-
-
-
-
构造器详细资料
-
WechatDirectPayApi
public WechatDirectPayApi(WechatPayClient wechatPayClient, String tenantId)
Instantiates a new Wechat pay api.- 参数:
wechatPayClient- the wechat pay clienttenantId- 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
-
queryTransactionFunction
private org.springframework.http.RequestEntity<?> queryTransactionFunction(WechatPayV3Type type, TransactionQueryParams params)
-
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
-
-