Cash

(payProduct=03)

支付流程

1、用户在商户网站进行下单选择Cash付款;

2、商户向Supefina发起Cash支付请求;

3、Supefina返回Cash付款URL信息。

4、商户将该支付URL展示给用户;

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

支付类型 Cash:03

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

银行编码

expireTimeL

Long

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

callbackUrl

String

回调地址

详见通知回调说明

description

String

描述

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

请求示例

{
    "callbackUrl": "https://d3vf2zxd9jv8rh.cloudfront.net/apigate/v6sx2i/api/pay_notice/in_payback/payId/CDEA3CA37DBC4C2CB6301AED14011122",
    "checkOut": true,
    "countryId": "COL",
    "currency": "COP",
    "customerAccount": "60872832",
    "customerEmail": "[email protected]",
    "customerIdentification": "9145652857",
    "customerName": "Aaliyah Rogers",
    "customerPhone": "3073030686",
    "lastName": "cith",
    "merId": "8301113635310326",
    "merOrderNo": "R20240619032018545",
    "nonceStr": "6D9B18BFD37240EB846FC923059D001B",
    "orderAmount": "20000",
    "payProduct": "03",
    "sign": "727D7B7416A570284E97F295DECF8490",
    "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

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

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";
}

最后更新于