获取支付通道列表
POST
/myauth/web/getEpay
请求参数
Header 参数
token
string
必需
示例值:
ec22762345c74b3c9a1201d092d16e1f
Body 参数application/json
id
integer | null
可选
name
string | null
通道名称
driver
string | null
通道标识
config
integer | null
通道配置
content
string | null
通道说明
updateTime
string | null
修改时间
enabled
string | null
开关
pageIndex
integer
页码
pageSize
integer
每页数据行数
orders
array [object {2}]
排序
column
string | null
字段名
asc
string | null
是否正序排序
示例
{
"pageIndex": 1,
"pageSize": 10,
"orders": [
{
"column": null,
"asc": null
}
],
"content": null,
"id": null,
"enabled": null,
"updateTime": null,
"driver": null,
"config": null,
"name": null
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/getEpay' \
--header 'token: ec22762345c74b3c9a1201d092d16e1f' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageIndex": 1,
"pageSize": 10,
"orders": [
{
"column": null,
"asc": null
}
],
"content": null,
"id": null,
"enabled": null,
"updateTime": null,
"driver": null,
"config": null,
"name": null
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {8}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array [object {2}]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"name": "微信",
"sort": 1,
"driver": "epay_wxpay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-微信",
"updateTime": null,
"enabled": 0
},
{
"id": 2,
"name": "支付宝",
"sort": 2,
"driver": "epay_alipay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-支付宝",
"updateTime": null,
"enabled": 0
},
{
"id": 3,
"name": "QQ",
"sort": 3,
"driver": "epay_qqpay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-QQ",
"updateTime": null,
"enabled": 0
}
],
"total": 3,
"size": 10,
"current": 1,
"orders": [
{
"column": "",
"asc": true
}
],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1655048301536
}
修改于 2022-06-15 15:49:17