public class DirectBasePayApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private AppMerchant |
appMerchant |
private WechatPayRetrofitFactory |
factory |
private cn.felord.utils.AlternativeJdkIdGenerator |
idGenerator |
private InternalBasePayApi |
internalBasePayApi |
| Constructor and Description |
|---|
DirectBasePayApi(WechatPayRetrofitFactory factory,
AppMerchant appMerchant)
Instantiates a new Base pay api.
|
| Modifier and Type | Method and Description |
|---|---|
AppPayResponse |
app(AppNativePayRequest request)
APP下单API
|
boolean |
close(String outTradeNo)
关闭订单API
|
CombinePayApi |
combinePay()
合单支付API
|
BufferSource |
downloadFundFlowBill(FundFlowBillRequest request)
申请资金账单API
|
BufferSource |
downloadTradeBill(TradeBillRequest request)
申请交易账单API
|
PrepayResponse |
h5(H5PayRequest request)
H5下单API
|
JsPayResponse |
jsapi(JsPayRequest request)
JSAPI/小程序下单API
|
PrepayResponse |
nativePay(AppNativePayRequest request)
Native下单API
|
RefundResponse |
queryRefundInfo(String outRefundNo)
查询单笔退款API
|
PayDetailResponse |
queryTransactionById(String transactionId)
微信支付订单号查询API
|
PayDetailResponse |
queryTransactionByOutTradeNo(String outTradeNo)
商户订单号查询API
|
RefundResponse |
refund(RefundRequest request)
申请退款API
|
private final cn.felord.utils.AlternativeJdkIdGenerator idGenerator
private final WechatPayRetrofitFactory factory
private final InternalBasePayApi internalBasePayApi
private final AppMerchant appMerchant
public DirectBasePayApi(WechatPayRetrofitFactory factory, AppMerchant appMerchant)
factory - the factoryappMerchant - the app merchantpublic JsPayResponse jsapi(JsPayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic AppPayResponse app(AppNativePayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic PrepayResponse nativePay(AppNativePayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic PrepayResponse h5(H5PayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic PayDetailResponse queryTransactionById(String transactionId) throws PayException
transactionId - the transaction idPayException - the pay exceptionpublic PayDetailResponse queryTransactionByOutTradeNo(String outTradeNo) throws PayException
outTradeNo - the out trade noPayException - the pay exceptionpublic boolean close(String outTradeNo) throws PayException
outTradeNo - the out trade noPayException - the pay exceptionpublic RefundResponse refund(RefundRequest request) throws PayException
当交易发生之后一年内,由于买家或者卖家的原因需要退款时, 卖家可以通过退款接口将支付金额退还给买家, 微信支付将在收到退款请求并且验证成功之后,将支付款按原路退还至买家账号上。
request - the requestPayException - the pay exceptionpublic RefundResponse queryRefundInfo(String outRefundNo) throws PayException
outRefundNo - the out refund noPayException - the pay exceptionpublic BufferSource downloadTradeBill(TradeBillRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic BufferSource downloadFundFlowBill(FundFlowBillRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic CombinePayApi combinePay()
Copyright © 2025. All rights reserved.