Card

(payProduct=21)

Payment Process

1. The user places an order on the merchant's website/app and selects Card payment;

2. The merchant initiates a card payment request to Supefina;

3. Supefina returns the card payment URL address;

4. The merchant will open the address on the user's side;

5. The user shall verify and pay according to the prompts on the page;

6. The user pays successfully;

7. Supefina will notify the merchant of the payment success information.

The address of the request

环境名称
URL

SandBox

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

Formal environment

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

Request parameters

Request header

Key
Value

Content-Type

application/json

Request body

Variable name
type
Required
description

countryId

String

Yes

Country number Reference: Dictionary table - country number Chile:CHL

merId

String

Yes

Merchant ID Merchant ID acquisition path: Supefina Merchant Background - Merchant Management - Basic Information - Merchant ID

payProduct

String

Yes

Payment type Card:21

orderAmount

String

Yes

The amount of the order Only integers are supported

currency

String

Yes

Currency Reference: Dictionary Table - Currency

Chilean Peso: CLP

merOrderNo

String

Yes

Merchant order number

customerEmail

String

Yes

The user's email address

nonceStr

String

Yes

Random strings The length cannot exceed 32 bits

description

String

Yes

description No special symbols

callbackUrl

String

No

Callback address

For details, see Notification Callbacks

expireTimeL

Long

No

Expiration time Unit: seconds; Default value: 82800 seconds; Maximum: 82800 seconds; Minimum: 300 seconds.

customerIdentification

String

Yes

The ID number of the user

customerIdentificationType

String

Yes

The type of user ID

02: Tax identification number

03: Passport

customerName

String

Yes

User's name

lastName

String

Yes

The user's last name

Sample request

{
    "callbackUrl": "https://payment.mxcash.xyz/supefina/repay?payway=stp",
    "countryId": "CHL",
    "currency": "CLP",
    "customerEmail": "[email protected]",
    "description": "CLCD2024060501425763870818",
    "expireTimeL": 21600,
    "merId": "8202482368270378",
    "merOrderNo": "CR33320606041049425817",
    "nonceStr": "dwPAko1524FQNpgIsLe6vzmKrbfGValX",
    "orderAmount": "116138",
    "payProduct": "21",
    "returnUrl": "",
    "sign": "12DECDE3D09AE37406AC9CD5B888A0DB",
    "customerIdentification":"11.111.111-1",
    "customerIdentificationType":"02",
    "customerName":"zx",
    "lastName":"z"
}

Response parameters

Variable name
type
description

code

String

Response coding

For details, see Response Status Code

msg

String

Response Information

data

Object

Response data

merCode

String

Merchant ID

merOrderNo

String

Merchant order number

supefinaOrderNo

String

Supefina order number

amount

BigDecimal

The amount of the order

fee

BigDecimal

Advance handling fee will be charged

identifier

String

Payment Reference

transactionStatus

String

Order status Whether the initiation status of the order is successful or not has nothing to do with the real transaction status of the order. 00: The order is successful 04: Failed to place an order

url

String

Transaction links

Sample response

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

Callback notifications

Submission method:POST

Variable name
type
description

amount

String

The amount of the order

countryId

String

Country number

fee

String

Advance handling fee will be charged

merId

String

Merchant ID

merOrderId

String

Merchant order number

nonceStr

String

Random strings The length cannot exceed 32 bits

realityAmount

String

Paid-in amount

realityFee

String

Actual handling fee

reference

String

identifier

sign

String

signature

status

String

Transaction status For details, please refer to: Dictionary Table - Trading Order Status

supefinaOrderId

String

Supefina order number

transactionType

String

The type of transaction 01:Payin 02:Payout

identifier

String

Payment Reference Clabe

An example of a callback notification

{
	"amount": "5000.00",
	"countryId": "CHL",
	"fee": "200.00",
	"identifier": "706180968985601627",
	"merId": "8301658799000244",
	"merOrderId": "R20240419013928893",
	"nonceStr": "9065c3a9-35bd-47ec-9f75-512fb6",
	"realityAmount": "5000.00",
	"realityFee": "180.00",
	"reference": "1713490813932824",
	"sign": "5DCECBBB5F299614DAAF809C8FED50C4",
	"status": "01",
	"supefinaOrderId": "20240419020101362465493119043",
	"transactionType": "01"
}

Callback notification response

After the merchant successfully receives the callback, it needs to return the specified string synchronously: SUCCESS does not return or returns other content by default, and the notification fails.

As:

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

Última actualización