public class CombinePayApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private AppMerchant |
appMerchant |
private cn.felord.utils.AlternativeJdkIdGenerator |
idGenerator |
private InternalCombinePayApi |
internalCombinePayApi |
| Constructor and Description |
|---|
CombinePayApi(cn.felord.utils.AlternativeJdkIdGenerator idGenerator,
WechatPayRetrofitFactory factory,
AppMerchant appMerchant)
Instantiates a new Combine pay api.
|
| Modifier and Type | Method and Description |
|---|---|
AppPayResponse |
app(CombineAppPayRequest request)
APP下单API
|
boolean |
close(CombinePayCloseRequest request)
合单关闭订单API
|
PrepayResponse |
h5(CombineH5PayRequest request)
H5下单API
|
JsPayResponse |
jsapi(CombineJsPayRequest request)
JSAPI/小程序下单API
|
PrepayResponse |
nativePay(CombineNativePayRequest request)
Native下单API
|
CombinePayDetailResponse |
queryTransactionByOutTradeNo(String combineOutTradeNo)
合单查询订单API
|
private final cn.felord.utils.AlternativeJdkIdGenerator idGenerator
private final InternalCombinePayApi internalCombinePayApi
private final AppMerchant appMerchant
CombinePayApi(cn.felord.utils.AlternativeJdkIdGenerator idGenerator,
WechatPayRetrofitFactory factory,
AppMerchant appMerchant)
idGenerator - the id generatorfactory - the factoryappMerchant - the app merchantpublic AppPayResponse app(CombineAppPayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic PrepayResponse h5(CombineH5PayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic JsPayResponse jsapi(CombineJsPayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic PrepayResponse nativePay(CombineNativePayRequest request) throws PayException
request - the requestPayException - the pay exceptionpublic CombinePayDetailResponse queryTransactionByOutTradeNo(String combineOutTradeNo) throws PayException
combineOutTradeNo - the combine out trade noPayException - the pay exceptionpublic boolean close(CombinePayCloseRequest request) throws PayException
request - the requestPayException - the pay exceptionCopyright © 2024. All rights reserved.