Перейти до основного вмісту

UPI

Підключення платіжного методу UPI вимагає використання direct-інтеграції. Запит на створення платежу повинен містити такі параметри:

ParameterTypeRequiredDescription
pos_idUUID✅Merchant's identifier (POS_ID)
modeMODE✅direct
methodMETHOD✅Payment method (purchase)
amountNumber✅Transaction amount
currencyCURRENCY✅Transaction currency (ISO_4217)
order_3ds_bypassString✅3-D Secure flow option
order_idString✅Unique identifier of order
descriptionString✅Payment description
paywayString✅upi
server_urlURLWebhook notification will be sent to this URL
result_urlURLCustomer will be redirected to this URL after payment.
customer_fnameString✅payer’s first name
customer_lnameString✅payer’s last name
customer_emailString✅payer’s email address
customer_phoneString✅payer’s phone number
customer_ipString✅payer’s IP
properties.upi_numberString✅UPI address of the payer
properties.mop_typeString✅type of wallet
properties.trustedBoolean✅whether the trusted payer

Приклад запиту:

{
"pos_id": "'$POS_ID'",
"mode": "direct",
"amount": 12,
"method": "purchase",
"currency": "INR",
"payway": "upi",
"order_3ds_bypass": "supported",
"customer_fname": "John",
"customer_lname": "Doe",
"customer_phone": "7259955534",
"customer_email": "[email protected]",
"customer_ip": "1.2.3.4",
"description": "Test description for '$ORDER_ID'# payment",
"order_id": "'$ORDER_ID'",
"server_url": "https://callback.blackhole.com/callback",
"result_url": "https://example.com/result",
"properties": {
"mop_type": "507",
"upi_number": "9971100000@hdfcbank",
"trusted": true,
}
}