快捷收款
参数说明
Request
name | type | required | desc | example |
---|---|---|---|---|
param | JSONObject | YES | 参数 | |
─epayAccount | string | YES | 商户易派账号 | test2020@epay.com |
─payerAccount | string | NO | 付款人账号 | 100 |
─merchantName | string | YES | 商户名称 | epay |
─merchantOrderNo | string | YES | 商户订单号 | lx083031 |
─paymentAmount | string | NO | 支付金额 | 100 |
─paymentCurrency | string | YES | 支付币种,见currencyType说明 | BRL |
─paymentCountry | string | YES | 支付国家 | BR |
─receiveAmount | string | NO | 收款金额 | 可为空 |
─receiveCurrency | string | YES | 收款币种,见currencyType说明 | USD |
─channelCode | string | YES | 渠道编码 | 46 |
─version | string | YES | 版本号 | V2.0.0 |
─notifyUrl | string | YES | 回调接收地址 | http://localhost/paymentApi/channel/send.do |
─remark | string | NO | 备注说明 | |
─category | string | NO | 银行BANK,现金CASH | BANK |
─extendFields | JSONObject | NO | 额外字段 | |
─senderInfo | JSONObject | NO | 付款人信息组 | |
─ ─surName | String | NO | 姓 | |
─ ─givName | String | NO | 名 | |
─ ─purposeOfRemittance | String | NO | 付款目的 | |
─ ─country | String | NO | 国家 | |
─ ─userType | String | NO | 用户类型 | |
─ ─idType | String | NO | 证件类型 | |
─ ─idNumber | String | NO | 证件号码 | |
String | NO | 邮件 | ||
─ ─locationId | String | NO | 银行网点位置ID,从网点查询中获取 | |
─ ─accountType | String | NO | 银行账户类型 | |
─ ─bankName | String | NO | 银行名称,从网点查询中获取 | |
─ ─accountNo | String | NO | 银行账户号 | |
─ ─bankBranchCode | String | NO | 分行号 | |
─ ─phone | String | NO | 手机号 | |
─ ─area | String | NO | 地区 | |
─ ─bankBranchName | String | NO | 分行名称 | |
─ ─orderDesc | String | NO | 订单备注 | |
─ ─productName | String | NO | 商品名称 | |
─ ─productPrice | String | NO | 商品价格 | |
─ ─productCount | String | NO | 商品数量 | |
─ ─productShowUrl | String | NO | 商品链接 | |
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 | 数据 | |
─epayAccount | string | YES | 易派账户 | test2020@epay.com |
─merchantName | string | YES | 商户名称 | epay |
─merchantOrderNo | string | YES | 您的订单号 | lx0812097 |
─paymentAmount | string | YES | 支付金额 | 1000 |
─paymentCurrency | string | YES | 支付币种,见currencyType说明 | BRL |
─receiveAmount | string | YES | 收款金额 | 195.44 |
─receiveCurrency | string | YES | 收款币种,见currencyType说明 | USD |
─channelCode | string | YES | 渠道编号 | 46 |
─version | string | YES | 版本号 | V2.0.0 |
─notifyUrl | string | YES | 回调地址 | www.yourmerchant.com |
─successUrl | string | YES | 成功返回地址 | www.yourmerchant.com |
─failUrl | string | YES | 失败返回地址 | www.yourmerchant.com |
─remark | string | YES | 备注 | |
─epayOrderNo | string | YES | 易派订单号 | 211141425716147189493760 |
─status | string | YES | 订单状态 | 1 |
─fields | string | YES | 额外字段 | {"url": "https://sandbox-gateway.safetypay.com/Express4/Checkout/index?TokenID=5e1789e7-9bf0-4901-9b5c-3d26a4ba9caf-45ssws"} |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payinApi/sendTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantName": "epay",
"merchantOrderNo": "lx083031",
"receiveAmount": "",
"receiveCurrency": "USD",
"paymentAmount": "100",
"paymentCurrency": "BRL",
"paymentCountry": "BR",
"payerAccount ":"",
"channelCode": "46",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"remark": ""
},
"sign": "{{sign}}"
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payinApi/sendTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantName": "epay",
"merchantOrderNo": "lx083031",
"receiveAmount": "",
"receiveCurrency": "USD",
"paymentAmount": "100",
"paymentCurrency": "BRL",
"paymentCountry": "BR",
"payerAccount ":"",
"channelCode": "46",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"remark": ""
},
"sign": "{{sign}}"
}'
ResponseExample
{
"sign": "735BA86F116D4A4865302513D6F9DD8D3A2ABF0FA94A52664A794378952C2507",
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"epayAccount": "test2020@epay.com",
"merchantName": "epay",
"merchantOrderNo": "lx0812097",
"paymentAmount": "1000",
"paymentCurrency": "BRL",
"receiveAmount": "195.44",
"receiveCurrency": "USD",
"channelCode": "46",
"version": "V2.0.0",
"notifyUrl": "www.baidu.com",
"successUrl": "www.baidu.com",
"failUrl": "www.baidu.com",
"remark": "",
"fields": {
"url": "https://sandbox-gateway.safetypay.com/Express4/Checkout/index?TokenID=5e1789e7-9bf0-4901-9b5c-3d26a4ba9caf"
},
"epayOrderNo": "211141425716147189493760",
"status": "1"
}
}