Skip to main content

Paytm

To enable the Paytm payment method, you need to use direct integration. When creating a payment, send a request with the following parameters:

ParameterTypeRequiredDescription
pos_idUUIDMerchant's identifier (POS_ID)
modeMODEdirect
methodMETHODPayment method (purchase)
amountNumberTransaction amount
currencyCURRENCYTransaction currency (ISO_4217)
order_3ds_bypassString3-D Secure flow option
order_idStringUnique identifier of order
descriptionStringPayment description
paywayStringpaytm
server_urlURLWebhook notification will be sent to this URL
result_urlURLCustomer will be redirected to this URL after payment.
customer_fnameStringpayer’s first name
customer_lnameStringpayer’s last name
customer_emailStringpayer’s email address
customer_phoneStringpayer’s phone number
customer_ipStringpayer’s IP
properties.trustedBooleanwhether the trusted payer

Request example:

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