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

PhonePe

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

ParameterTypeRequiredDescription
pos_idUUID✅Merchant's identifier (POS_ID)
modeMODE✅direct
methodMETHOD✅Payment method (purchase)
amountNumber✅Transaction amount. Must be a positive number. The number of decimal digits must be less than or equal to 2 (e.g., 100.00, 250, 50.50)
currencyCURRENCY✅Transaction currency (ISO_4217)
order_3ds_bypassString✅3-D Secure flow option
order_idString✅Unique identifier of order
descriptionString✅Payment description
paywayString✅phonepe
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

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

{
"pos_id": "'$POS_ID'",
"mode": "direct",
"method": "purchase",
"amount": 1000,
"payway": "phonepe",
"currency": "INR",
"order_id": "'$ORDER_ID'",
"customer_fname": "John",
"customer_lname": "Doe",
"description": "Description",
"customer_email": "[email protected]",
"order_3ds_bypass":"supported",
"server_url": "http://callback-stub:9000/consume",
"result_url": "https://example.com/result"
}