public class PayApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private okhttp3.ConnectionPool |
connectionPool |
private okhttp3.logging.HttpLoggingInterceptor.Level |
level |
private WeComTokenCacheable |
weComTokenCacheable |
| Constructor and Description |
|---|
PayApi(WeComTokenCacheable weComTokenCacheable,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level)
Instantiates a new Pay api.
|
| Modifier and Type | Method and Description |
|---|---|
ExternalCorPayApi |
external(AgentDetails agentDetails)
对外收款
|
ExternalPayAccountApi |
externalPayAccountApi(AgentDetails agentDetails)
对外收款账户
|
InternalCorPayApi |
internal(String paySecret,
String payAgentSecret,
cn.felord.retrofit.ssl.SSLManager sslManager)
企业红包和向员工付款
|
MiniAppPayApi |
miniAppPay(AgentDetails agentDetails)
小程序接入对外收款
|
private final WeComTokenCacheable weComTokenCacheable
private final okhttp3.ConnectionPool connectionPool
private final okhttp3.logging.HttpLoggingInterceptor.Level level
PayApi(WeComTokenCacheable weComTokenCacheable, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
weComTokenCacheable - the we com token cacheableconnectionPool - the connection poollevel - the levelpublic InternalCorPayApi internal(String paySecret, String payAgentSecret, cn.felord.retrofit.ssl.SSLManager sslManager)
paySecret - 微信支付密钥payAgentSecret - 企业微信支付应用secret(参见企业微信管理端支付应用页面)sslManager - 微信支付SSL,要对应paySecretpublic ExternalCorPayApi external(AgentDetails agentDetails)
对外收款是企业微信提供的面向微信用户使用的收款方式,可以在聊天中、用收款码、在直播间、使用商品图册等多种方式收款。
agentDetails - the agent detailspublic ExternalPayAccountApi externalPayAccountApi(AgentDetails agentDetails)
agentDetails - the agent detailspublic MiniAppPayApi miniAppPay(AgentDetails agentDetails)
本接口适用于在 由企业微信向微信发出的小程序中使用对外收款账户进行收款。
调用权限说明:
agentDetails - the agent detailsCopyright © 2023. All rights reserved.