Mexico
(Multiple payment method integration)
Currently supported payment products
Cash
SPEI
Card
Payment process (please refer to the document in the collection list for the process of specific payment methods)
The user places an order and pays on the merchant's website.
The merchant initiates an API payment request to Supefina.
Supefina returns aggregate cashier address and associated tracking number data.
The user selects the relevant payment method and makes the payment operation at the cashier.
Supefina notifies the merchant that the order is successful.
The address of the request
SandBox
POST
http://8.130.9.219:8899/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
merOrderNo
String
Yes
Merchant order number
countryId
String
Yes
Country number
Mexico: MEX
customerName
String
Yes
Customer's name
orderAmount
BigDecimal
Yes
The amount of the order (only fixed payment is supported). 1. If the amount paid by the user is inconsistent with the amount of the order, we will carry out the relevant refund operation, and if the refund cannot be made, we will contact the relevant operation. 2. If the user makes a payment outside the validity period of the cashier, we will also make a refund, and if the refund is not possible, we will contact the relevant operation. 3. Please note that the refund operation will charge a fee for different payment methods. 4. The amount of the fee can be reached by contacting the operator.
merId
String
Yes
Merchant ID Merchant ID acquisition path: Supefina Merchant Background - Merchant Management - Basic Information - Merchant I
currency
String
Yes
checkOut
Boolean
Yes
Pull aggregate checkout conditions In this mode, only true is supported
description
String
Yes
Payment-related descriptions
nonceStr
String
Yes
Random strings The length cannot exceed 32 bits
sign
String
Yes
payProduct
String
No
callbackUrl
String
No
Callback address
expireTimeL
Long
No
Cashier expiration time (in seconds) 1. If you don't pass in the default 12H 2. If the incoming time is less than 3 minutes or more than 7 days, we will also default to 12H
requestData
Object
No
Additional parameters Note: If the merchant has configured a Cash payment method, this parameter must be passed.
businessUnit
Object
Yes
Business Units
name
String
Yes
The name of the business unit
key
String
Yes
A unique identifier for a business unit
showHtmlFlag
String
Yes
Display the HTML payment page
Receipts page URL:1
repeat
Boolean
No
Whether Clabe is reused
Note: If payProduct is specified as 15 (SPEI), this parameter must be passed
true
:has been used multiple times
productName
String
Yes
The title of the product The maximum number of characters is 50 If the merchant has configured a card payment method, this parameter must be transmitted
String
No
Customer's email address 3-256 characters If the merchant has configured a card payment method, this parameter must be transmitted
receiverAddressMain
String
No
Address, street 0-50 characters If the merchant has configured a card payment method, this parameter must be transmitted
receiverAddressExtra
String
No
Address, community, house number 0-50 characters If the merchant has configured a card payment method, this parameter must be transmitted
receiverCity
String
No
Recipient city 0-50 characters, can include spaces, hyphens, apostrophes, commas, and dots If the merchant has configured a card payment method, this parameter must be transmitted
receiverProvince
String
No
receiverCountry
String
No
receiverZipCode
String
No
Zip code 0-12 letters or numbers If the merchant has configured a card payment method, this parameter must be transmitted
receiverPhone
String
No
Recipient's phone 5-20 characters, add area code. For example: +1 111111111 If the merchant has configured a card payment method, this parameter must be transmitted
Sample request
Activate all payment methods - do not pass in payProduct
Partial payment methods (Cash and SPEI) are activated - no payProduct is passed
Activate some payment methods (Cash and Card) - do not pass in payProduct
Pass in the specified payment method
payProduct:03
payProduct:15
payProduct:18
Response parameters
code
String
Response coding
msg
String
Response description
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
url
String
Transaction links
currency
String
Currency
Example of Response - Success
Example response - Failed
Callback Notification - Submission Method:POST
POST
amount
String
The amount of the order
countryId
String
fee
String
Advance handling fee will be charged
identifier
String
Payment Reference Clabe
merId
String
Merchant ID
merOrderId
String
Merchant order number
msg
String
Response description
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
successTime
Date
The time at which the transaction was successful UTC time
supefinaOrderId
String
Supefina order number
transactionType
String
The type of transaction
01
:Payin
An example of a callback notification
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:
Última actualización