Cash
(payProduct=03)
Payment Process

1. The user places an order on the merchant's website and selects Cash payment;
2. The merchant initiates a Cash payment request to Supefina;
3. Supefina returns the Cash payment URL information;
4. The merchant displays the payment URL to the user;
5. The user pays according to the prompts on the page;
6. The payment is successful;
7. Supefina notifies the merchant that the order is successful.
The address of the request
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
Content-Type
application/json
Request body
merId
String
Yes
Merchant ID Merchant ID acquisition path: Supefina Merchant Background - Merchant Management - Basic Information - Merchant ID
orderAmount
String
Yes
The amount of the order Only integers are supported
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
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": "http://api.supefina.net/api/supefina/transactions/test/zx",
"countryId": "CHL",
"currency": "CLP",
"customerEmail": "[email protected]",
"description": "test payku",
"expireTimeL": 86400,
"merId": "8202411379430193",
"merOrderNo": "test-0011",
"nonceStr": "12312",
"orderAmount": "1000",
"payProduct": "03",
"sign": "12DECDE3D09AE37406AC9CD5B888A0DB",
"customerIdentification":"11.111.111-1",
"customerIdentificationType":"02",
"customerName":"zx",
"lastName":"z"
}Response parameters
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
amount
String
The amount of the order
countryId
String
Country number
fee
String
Advance handling fee will be charged
identifier
String
Payment Reference Clabe
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
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