Prerequisites
-
Write to the Paytm Support Team with the following requests:
- Enable seamless mode for your account. Mention that you are using a technology company to handle sensitive card data.
- Configure the following webhooks:
Type | URL
Production URL |
Stage URL |https://api.razorpay.com/v1/callback/paytmhttps://beta-api.razorpay.com/v1/callback/paytm- Configure the following if you intend to use UPI.
- Update settlement API page size from 20 to 200.
- Enable Refund Processing to process refunds for your merchant ID.
-
To pass your unique Order ID or Receipt for every order, write to Paytm support team to show the
extendInfo.udf1parameter in the Paytm Dashboard and customize report. Know more about how to send your order id to Paytm.
Add Paytm as a Payment Provider
To add Paytm (S2S) as a payment provider:
- Log in to your Dashboard.
- Go to the PAYMENT PRODUCTS section and click Optimizer.
- In the top-right section, click Add Provider.
- Select PayTm in the list of gateways available and click Next.
- Select Server-to-Server and click Next.
- Enter the provider name and description and click Next.
- Enter your INDUSTRY_TYPE_ID, KEY, MID (merchant id) and WEBSITE details.
- Select the Payment Methods you want to enable for Paytm and click Submit.
Supported Payment Methods
Payment Methods | Availability
Netbanking | Live
Cards | Live
UPI | Live
Wallet | Live
EMI | Coming Soon
Settlements | Live
Refunds | LiveEmail Format for Paytm
Follow the email format given below to communicate the prerequisites or any other requirements to the Paytm support team:
Send the email to the following email IDs:devsupport@paytmpayments.compg.support@paytmpayments.com
- Kindly enable seamless pro or S2S mode for our account.
- Please enable the account for card and netbanking transactions.
-
Configuration of the below end points for transaction callbacks for production and stage:
Type | URL
Production URL |
https://api.razorpay.com/v1/callback/paytmStage URL |
https://beta-api.razorpay.com/v1/callback/paytm - Enable refund processing on this MID.
- Enable UPI for this account.
- INDUSTRY_TYPE_ID
- KEY
- MID
- WEBSITE
Send Receipt/Order ID to External Gateway
You might be generating a unique Order ID or Receipt for every order which can be passed to Paytm via Orders API. To male your order id visible on the Paytm Dashboard:1
Step 1
In Razorpay’s Orders API, use the
receipt parameter to send your unique Order ID or Receipt.2
Step 2
Razorpay passes this value to Paytm in the
extendInfo.udf1 parameter.3
Step 3
Write to your Paytm support team to show the parameter
extendInfo.udf1 in the Dashboard and reports as per your use case.Best Practices
Before routing any traffic to a new gateway via Optimizer, the following best practices are recommended:Live and Test Mode Rules
All rules configured on live or test mode on the Razorpay Dashboard will reflect on live mode. However, credentials added on test mode will not be automatically replicated in live mode.Sanity Test at Razorpay
You can reach out to Razorpay for basic sanity testing of the integration. Razorpay will try a test payment of small value and ensure that the credentials are correct.Perform Self Sanity Test
We recommend configuring a rule on live mode to route payments lesser than a set value (for example, ₹2) to the Paytm gateway. This helps to test on production whether small value payments are being routed to Paytm and working successfully, thus avoiding any direct impact on production traffic. To configure a rule in live mode:- Log in to your Dashboard.
- In the left navigation, click Optimizer.
- Click +Add Rule and enter the Rule name and Description.
-
Click Next and enter the following rule:
- In Parameter field, select Amount (In Rupees).
- In Select Connection field, select Less Than.
- In Enter Amount field, enter the value 2 and click Next.
- Enter the value 100 in the Route field, select Paytm in the Payment Via field, and click Next.
- Click Publish Rule.