收银台代收
参数说明
Request
| name | type | required | desc | example |
|---|---|---|---|---|
| param | JSONObject | YES | 参数 | |
| ─epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
| ─version | string | YES | 版本号 | V2.0.0 |
| ─senderEpayAccount | string | NO | 付款人EPAY账号 | sender@epay.com |
| ─merchantName | string | YES | 您的名称 | ali BANK |
| ─merchantOrderNo | string | YES | 您的订单号 | A092201 |
| ─amount | string | YES | 金额 | 10 |
| ─currency | string | YES | 币种 | EUR |
| ─notifyUrl | string | YES | 回调地址 | http://localhost/paymentApi/channel/send.do |
| ─successUrl | string | NO | 成功跳转页面 | http://localhost/paymentApi/channel/success.html |
| ─failUrl | string | NO | 失败跳转页面 | http://localhost/paymentApi/channel/fail.html |
| ─successUrlMethod | string | NO | 成功跳转类型POST/GET | POST |
| ─failUrlMethod | string | NO | 失败跳转类型POST/GET | POST |
| ─remark | string | NO | 备注 | remark |
| ─extendFields | JSONObject | NO | 您的扩展字段 | { "test": "test" } |
| ─language | string | NO | 默认语言 | CN |
| sign | string | YES | 签名 |
Response
| name | type | required | desc | example |
|---|---|---|---|---|
| sign | string | YES | 签名 | |
| epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
| version | string | YES | 版本号 | V2.0.0 |
| code | integer | YES | 状态码 1:成功 | 1 |
| message | string | YES | 提示 | success |
| data | JSONObject | YES | 数据 | |
| ─merchantName | string | YES | 您的名称 | ali BANK |
| ─senderEpayAccount | string | YES | 付款人EPAY账号 | sender@epay.com |
| ─merchantOrderNo | string | YES | 您的订单号 | A092201 |
| ─epayOrderNo | string | YES | Epay订单号 | 201141428590792305594368 |
| ─status | string | YES | 订单状态 | 0 |
| ─amount | string | YES | 金额 | 10.0 |
| ─fee | string | YES | 手续费 | 0.1 |
| ─currency | string | YES | 币种 | EUR |
| ─notifyUrl | string | YES | 回调地址 | http://localhost/paymentApi/channel/send.do |
| ─successUrl | string | YES | 成功跳转页面 | http://localhost/paymentApi/channel/success.html |
| ─failUrl | string | YES | 失败跳转页面 | http://localhost/paymentApi/channel/fail.html |
| ─epayUrl | string | YES | 付款页面 | http://web.epaydev.xyz/epayapi/paymentApi/merReceive?tid=566ad0e017082dc2b3a93b0b8bbad33b7b2d6 |
| ─remark | string | YES | 备注 | remark |
| ─extendFields | string | YES | 您的扩展字段 |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/gateway/sendTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"sign": "{{sign}}",
"param": {
"epayAccount": "test2020@epay.com",
"merchantName": "ali BANK",
"amount": "10",
"currency": "EUR",
"merchantOrderNo": "A092201",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"successUrl": "http://localhost/paymentApi/channel/send.do",
"failUrl": "http://localhost/paymentApi/channel/send.do",
"remark": "remark",
"senderEpayAccount": "",
"language": "CN",
"version": "V2.0.0",
"extendFields": {
"test": "test"
}
}
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/gateway/sendTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"sign": "{{sign}}",
"param": {
"epayAccount": "test2020@epay.com",
"merchantName": "ali BANK",
"amount": "10",
"currency": "EUR",
"merchantOrderNo": "A092201",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"successUrl": "http://localhost/paymentApi/channel/send.do",
"failUrl": "http://localhost/paymentApi/channel/send.do",
"remark": "remark",
"senderEpayAccount": "",
"language": "CN",
"version": "V2.0.0",
"extendFields": {
"test": "test"
}
}
}'
ResponseExample
{
"sign": "2F707ACCAC69E2E5FC20916AF840466B20D1BE03B68A491F0791339C43BDA410",
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"merchantName": "ali BANK",
"senderEpayAccount": "",
"merchantOrderNo": "T08121001111",
"epayOrderNo": "201141428590792305594368",
"status": "0",
"fields": "",
"amount": "10.0",
"fee": "0.1",
"currency": "EUR",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"successUrl": "http://localhost/paymentApi/channel/send.do",
"failUrl": "http://localhost/paymentApi/channel/send.do",
"epayUrl": "http://web.epaydev.xyz/epayapi/paymentApi/merReceive?tid=566ad0e017082dc2b3a93b0b8bbad33b7b2d62a770356e64f7d702a24ab2ab42&language=ZH_CN",
"remark": "remark"
}
}