All-Checkout

(payProduct=05)

支付流程

1、用户在商户网站/应用下单,并选择All-Checkout支付;

2、商户向Supefina发起All-Checkout支付请求;

3、Supefina返回All-Checkout支付URL地址;

4、商户将该地址在用户侧打开;

5、用户按照页面提示进行验证和支付;

6、用户支付成功;

7、Supefina将支付成功信息通知商户。

请求地址

环境名称
URL

SandBox

POST https://api.supefina.tech/api/supefina/transactions/payin

正式环境

POST https://api.supefina.net/api/supefina/transactions/payin

请求参数

请求头

Key
Value

Content-Type

application/json

请求体

变量名
类型
必填
描述

countryId

String

国家编号 参照:字典表-国家编号 哥伦比亚,COL

currency

String

币种 参照:字典表-货币 哥伦比亚比索:COP

orderAmount

String

订单金额 3000 >= orderAmount <= 2000000

不支持小数

payProduct

String

支付类型 All-Checkout:05

merId

String

商户ID 商户ID获取路径:Supefina商户后台-商户管理-基本信息-商户ID

merOrderNo

String

商户订单号

sign

String

nonceStr

String

随机字符串 长度不能超过32位

customerEmail

String

用户邮箱 邮箱用户名不能只有数字(例如[email protected])且同一个邮箱一天支付请求不能超过20次。

customerName

String

用户名字

customerPhone

String

用户电话 需以3开头的十位数

customerIdentification

String

用户证件号

checkOut

Boolean

收银台 true:需要收银台 false:不需要收银台 建议传true

customerAccount

String

用户账户 checkOutfalse时必传

lastName

String

用户姓氏 checkOutfalse时必传

customerIdentificationType

String

用户证件类型 00:身份证(CC/TI) 01:外国人身份证(CE) 02:税号 03:护照 06:其他 07:公民身份证明 08:居留许可证

checkOutfalse时必传

customerAddress

String

用户地址 checkOutfalse时必传

tipo_persona

String

付款主体 checkOutfalse时必传

bankId

String

银行编码 参照:https://api.supefina.net/api/supefina/transactions/internal/getEbixuBankList checkOutfalse时必传

expireTimeL

Long

过期时间 单位:秒;默认值:10分钟,最大值:10分钟

callbackUrl

String

回调地址

详见通知回调说明

description

String

描述

不能带特殊符号,长度不超过200字符

请求示例

{
    "callbackUrl": "http://8.130.9.219:8899/api/supefina/transactions/test/zx",
    "checkOut": true,
    "countryId": "COL",
    "currency": "COP",
    "customerEmail": "[email protected]",
    "customerIdentification": "123456",
    "customerName": "test",
    "customerPhone": "1234567890",
    "merId": "8202325858590233",
    "merOrderNo": "toppay001",
    "nonceStr": "123",
    "orderAmount": "3001",
    "payProduct": "05",
    "sign": "0F569F49F68884C3E490E44BB8FCF68E",
    "description":"Supefina"
}

响应参数

变量名
类型
描述

code

String

响应编码 具体参照:响应状态码

msg

String

响应信息

data

Object

响应数据

merCode

String

商户ID

merOrderNo

String

商户订单号

supefinaOrderId

String

supefina订单号

amount

BigDecimal

订单金额

fee

String

预收手续费

identifier

String

付款参考

transactionStatus

String

下单状态 该笔订单的的发起状态是否成功,与订单真正的交易状态无关。 00:下单成功 04:下单失败

url

String

交易链接

响应示例

{
    "code": "string",
    "msg": "string",
    "data": {
        "merCode": "string",
        "merOrderNo": "string",
        "supefinaOrderNo": "string",
        "amount": 0,
        "fee": 0,
        "transactionStatus": "string",
        "url": "string",
        "identifier": "string"
    }
}

回调通知

提交方式:POST

变量名
类型
描述

amount

String

订单金额

countryId

String

国家编号

customerName

String

用户名字

fee

String

预收手续费

identifier

String

付款参考 Clabe

merId

String

商户ID

merOrderId

String

商户订单号

msg

String

消息

nonceStr

String

随机字符串 长度不能超过32位

realityAmount

String

实收金额

realityFee

String

实收手续费

sign

String

签名

successTime

Date

交易成功时间 UTC时间

supefinaOrderId

String

supefina订单号

transactionType

String

交易类型 01:代收 02:代付

回调通知示例

{
    "amount": "20000.00",
    "countryId": "COL",
    "customerName": "Grace Shaw",
    "fee": "1000.00",
    "identifier": "706180968985601627",
    "merId": "8301409897370054",
    "merOrderId": "R20240619052050314",
    "msg": "",
    "nonceStr": "8b0c8dcd-14b6-4fef-a970-c914dc",
    "realityAmount": "20000",
    "realityFee": "1000.00",
    "sign": "FD1DD91503C4EC282E8CA01591973921",
    "status": "01",
    "successTime": 1718775146000,
    "supefinaOrderId": "2024061900010012b16f19beca043",
    "transactionType": "01"
}

回调通知响应

商户成功收到回调后需同步返回指定字符串:SUCCESS 不返回或返回其他内容默认通知失败 如:

public String test(){
	return "SUCCESS";
}

最后更新于