Cash

(payProduct=03)

支付流程

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

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

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

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

国家编号 参照:字典表-国家编号 墨西哥:MEX

currency

String

币种 参照:字典表-货币 墨西哥比索:MXN

orderAmount

String

订单金额 单位比索,需要分可以传入小数,支持两位小数

payProduct

String

支付类型 Cash:03

merId

String

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

expireTimeL

long

过期时间,无需传递,固定7*24*60*60=604800秒过期

description

String

订单描述

merOrderNo

String

商户订单号

requestData

Object

额外参数

businessUnit

String

业务单位

name

String

业务单位的名称

key

String

业务单位的唯一标识

showHtmlFlag

String

展示html收款页

只使用Cash二维码:0

收款页URL:1

customerEmail

String

顾客邮箱

appName

String

应用主体名称

sign

String

nonceStr

String

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

callbackUrl

String

回调地址

详见通知回调说明

请求示例

{
    "countryId": "MEX",
    "orderAmount": 20,
    "payProduct": "03",
    "merId": "8302170356300088",
    "expireTimeL": 259200,
    "description": "transas12121dasdasda",
    "merOrderNo": "123123111",
    "requestData": {
        "businessUnit": {
            "name": "12",
            "key": "111"
        },
        "showHtmlFlag": "1"
    },
    "customerEmail": "[email protected]",
    "currency": "MXN",
    "appName": "Supefina",
    "sign": "FAF48F7A7ECE404B29FC1C008B37882F",
    "nonceStr": "12312",
    "callbackUrl": "http://test.com"
}

响应参数

变量名
类型
描述

code

String

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

data

Object

响应数据

amount

BigDecimal

订单金额

fee

BigDecimal

预收手续费

merCode

String

商户ID

merOrderNo

String

商户订单号

supefinaOrderNo

String

supefina订单号

transactionStatus

String

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

url

String

交易链接

msg

String

响应描述

响应示例

{
    "code": "200",
    "data": {
        "amount": 12.00,
        "fee": 0.24,
        "merCode": "8302170356300088",
        "merOrderNo": "202405110916-test",
        "supefinaOrderNo": "202405110301004c5323cc5a0285",
        "transactionStatus": "01",
        "url": "https://h5.supefina.net/pagos?token=18c0nOqSQw9lsf%2Bpe5JcVC/fwkBgU="
    },
    "msg": "success "
}

回调通知

提交方式:POST

变量名
类型
描述

amount

String

订单金额

countryId

String

国家编号 参照:字典表-国家编号

fee

String

预收手续费

identifier

String

付款参考 Clabe

merId

String

商户ID

merOrderId

String

商户订单号

nonceStr

String

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

realityAmount

String

实收金额

realityFee

String

实收手续费

reference

String

付款参考 付款码

sign

String

签名

supefinaOrderId

String

supefina订单号

transactionType

String

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

回调通知示例

{
    "amount": "10.00",
    "countryId": "MEX",
    "fee": "1.00",
    "identifier": "706180968985601627",
    "merId": "8302170356300088",
    "merOrderId": "123123111",
    "nonceStr": "6cc9bb58-f087-40be-adef-e7b5f2",
    "realityAmount": "10.00",
    "realityFee": "1.00",
    "reference": "591768",
    "sign": "9BC9D098D5D35C512C9E2DA8CD62C51E",
    "status": "01",
    "supefinaOrderId": "202405110301004c5323cc5a0285",
    "transactionType": "01"
}

回调通知响应

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

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

最后更新于