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
orderAmount
String
Yes
The amount of the order
customerIdentification
String
Yes
The ID number of the user
00
: ID card (CC), 8 digits
01
: Alien Identity Card (CE), more than 9 digits
02
: Tax identification number, 11 digits
03
: Passport, more than 9 digits
04
: Departure Document (PAR)
05
: Military Identification (LMI)
The same certificate number customerIdentification
can be collected no more than 20 times per day
customerIdentificationType
String
Yes
用户证件类型 The type of user ID
00
: Identification Card (CC)
01
: Alien Identity Card (CE)
02
: Tax identification number
03
: Passport (PAS)
04
: Departure Document (PAR)
05
: Military Identification (LMI)
customerName
String
Yes
User's name
lastName
String
Yes
The user's last name
customerPhone
String
Yes
Subscriber's phone, 9 digits
Example: 975728895
customerEmail
String
Yes
用户邮The user's email address
expireTimeL
Long
No
Expiration time Unit: seconds; Default value: 1 day; Maximum: 30 days;
Minimum: None
merId
String
Yes
Merchant ID Merchant ID acquisition path: Supefina Merchant Background - Merchant Management - Basic Information - Merchant ID
merOrderNo
String
Yes
Merchant order number
checkOut
Boolean
No
Cash register
true
: The cashier is required
false
: The cash register is not required
It is recommended to pass true
nonceStr
String
Yes
Random strings The length cannot exceed 32 bits
Sample request
{
"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"
}
Response parameters
data
Object
Response data
merCode
String
Merchant ID
merOrderNo
String
Merchant order number
amount
BigDecimal
The amount of the order
url
String
Transaction links
msg
String
Response Information
Sample response
{
"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 "
}
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 code
merOrderId
String
Merchant order number
msg
String
message
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
successTime
Date
UThe time at which the transaction was successful UTC time
supefinaOrderId
String
Supefina order number
transactionType
String
The type of transaction
01
: Payin
02
: Payout
An example of a callback notification
{
"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"
}
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