public class CombinePayApi extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private AppMerchant |
appMerchant |
private cn.felord.utils.AlternativeJdkIdGenerator |
idGenerator |
private InternalCombinePayApi |
internalCombinePayApi |
| 构造器和说明 |
|---|
CombinePayApi(cn.felord.utils.AlternativeJdkIdGenerator idGenerator,
WechatPayRetrofitFactory factory,
AppMerchant appMerchant)
Instantiates a new Combine pay api.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2023. All rights reserved.