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

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

秘鲁:PER

currency

String

币种 参照:字典表-货币

秘鲁索尔:PEN

orderAmount

String

订单金额

payProduct

String

支付类型 Cash:03

customerIdentification

String

用户证件号 00:身份证(CC),8位 01:外国人身份证(CE),大于9位 02:税号,11位

03:护照,大于9位

04:离境证(PAR) 05:军官证(LMI)

同一个证件号customerIdentification进行代收时,游戏商户每天不超过5次,贷类商户每天不超过20次

customerIdentificationType

String

用户证件类型 00:身份证(CC) 01:外国人身份证(CE)

02: 税号 03:护照(PAS) 04:离境证(PAR) 05:军官证(LMI)

customerName

String

用户姓名

lastName

String

用户姓氏

customerPhone

String

用户电话, 9位数字

示例:975728895

customerEmail

String

用户邮箱

expireTimeL

Long

过期时间 单位:秒;默认值:1天 ;最大值:30天 ;最小值:没有

merId

String

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

merOrderNo

String

商户订单号

callbackUrl

String

回调地址

详见通知回调说明

checkOut

Boolean

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

nonceStr

String

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

sign

String

请求示例

{
    "callbackUrl": "https://test.com",
    "checkOut": true,
    "countryId": "PER",
    "currency": "PEN",
    "customerEmail": "[email protected]",
    "customerIdentification": "76017743",
    "customerIdentificationType": "00",
    "customerName": "Test Name",
    "customerPhone": "975728895",
    "expireTimeL": 3600,
    "lastName": "Name",
    "merId": "8202980903390150",
    "merOrderNo": "1812289681175369728",
    "nonceStr": "nneivujcjs",
    "orderAmount": "230.00",
    "payProduct": "03",
    "sign": "403D52134AF8A8A15356KE9C53AD92F3"
}

响应参数

变量名
类型
描述

code

String

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

data

Object

响应数据

merCode

String

商户ID

merOrderNo

String

商户订单号

amount

BigDecimal

订单金额

url

String

交易链接

msg

String

响应信息

响应示例

{
    "code": "200",
    "data": {
        "amount": "230.00",
        "fee": "6.90",
        "identifier": "90911988431",
        "merCode": "8202980903390150",
        "merOrderNo": "1812289681175369728",
        "supefinaOrderNo": "202405190101010696298b1ca1141",
        "transactionStatus": "00",
        "transactionType": "01",
        "url": "https://short.payv.co/ajshjasjkabn",
    },
    "msg": "success "
}

回调通知

提交方式:POST

变量名
类型
描述

amount

String

订单金额

countryId

String

国家编号

fee

String

预收手续费

identifier

String

付款参考 Clabe

merId

String

商户编号

merOrderId

String

商户订单号

msg

String

消息

nonceStr

String

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

realityAmount

String

实收金额

realityFee

String

实收手续费

reference

String

标识符

sign

String

签名

successTime

Date

交易成功时间 UTC时间

supefinaOrderId

String

supefina订单号

transactionType

String

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

回调通知示例

{
    "amount": "230.00",
    "countryId": "PER",
    "customerName": "Test Name",
    "fee": "6.90",
    "identifier": "90911988431",
    "merId": "8202980903390150",
    "merOrderId": "17922853818122896811753697281175369728",
    "nonceStr": "935111b9-968e-4b3d-9036-fd1acf",
    "realityAmount": "230",
    "realityFee": "6.90",
    "reference": "90911988431",
    "sign": "69DF96903B85CD1408BD6849C62254C0",
    "status": "01",
    "successTime": 1716149235000,
    "supefinaOrderId": "202405190101010696298b1ca1141",
    "transactionType": "01"
}

回调通知响应

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

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

最后更新于