class TenpayCertificateService extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TenpayCertificateService.TenpayCertificateAuthorizationInterceptor
The type Wechat authorization interceptor.
|
(package private) static class |
TenpayCertificateService.TenpayCertificateRetrofitFactory
The type Tenpay certificate retrofit factory.
|
| Modifier and Type | Field and Description |
|---|---|
private AppMerchant |
appMerchant |
private InternalCertificateApi |
certificateApi |
private TenpayKeyCache |
tenpayKeyCache |
| Constructor and Description |
|---|
TenpayCertificateService(String baseUrl,
AppMerchant appMerchant,
TenpayKeyCache tenpayKeyCache)
Instantiates a new Tenpay certificate api.
|
| Modifier and Type | Method and Description |
|---|---|
void |
certificates()
根据商户号和v3密钥获取平台证书列表
|
TenpayKey |
getTenpayKey(String serialNumber)
Gets tenpay key.
|
private final AppMerchant appMerchant
private final TenpayKeyCache tenpayKeyCache
private final InternalCertificateApi certificateApi
TenpayCertificateService(String baseUrl, AppMerchant appMerchant, TenpayKeyCache tenpayKeyCache)
baseUrl - the base urlappMerchant - the app merchanttenpayKeyCache - the tenpay key cachepublic void certificates()
throws PayException
PayException - the pay exceptionCopyright © 2023. All rights reserved.