Paytm Payment Links
Paytm Payment Links are used to collect payments from your customers, wherever they are. A Payment Link is a simple web address that can be shared via SMS, email or your favorite chat software with one or many customers. When your customers click on the link, they can complete payment either via Paytm app if it’s installed on your customer’s phone or via a simple payment page that opens in a web/mobile web browser.
Payment Links can be created via your Paytm Dashboard or via APIs. Your customers do not need to have a Paytm account to pay you using Payment Links.
Payment Links can be customized according to your requirements -
|Type of Link||Description|
|Generic Link||There is no limit on number of customers, payments or amount.|
|Fixed Amount Link||There is no restriction on number of payments but the amount is fixed.|
|Invoice Link||Typically used for a single payment only with a fixed amount|
Demo of Payment via Payment Links
Overview of Payment Processing via Paytm Payment Links
- You can create Payment Links manually via Paytm Dashboard
- Use the Create Link API when you need to generate links in bulk or within your application
- Specify the mobile number and email to send Link via SMS/Email automatically after Link creation
- Use the Resend Notification Link API to resend a Link to any mobile number/email address in case you need to remind a customer for payment
- When your customer clicks on the link, one of the following two things will happen -
- If your customer has the Paytm App installed, the app is invoked to make payment
- If your customer does not have the Paytm App, payment link opens in a desktop/mobile browser
- Customers can pay using all available payment methods on your account - Paytm Wallet, UPI, Paytm Payments Bank, Credit/Debit Cards, Netbanking, Paytm Postpaid and more
- Once a customer completes the payment, a Payment Callback Notification is sent to your Callback URL specified at the time of link creation. In case a Callback URL is not specified, the notification is sent on the registered Callback URL submitted at the time of account creation
- You can get a list of all the Links you have created using Fetch Link API. Get the details of payments against a Link using Fetch Transaction API
Find the detailed interaction of each system component in the flowchart below:
Payment Links Status
A Payment Link can have any of the following status after creation -
|issued||Payment link is created and sent to customer (if applicable)|
|paid||Payment for the link is completed by the customer. This is only relevant for Invoice Links.|
|cancelled||Payment link has been cancelled|
|expired||Payment link has expired. Merchant can set a expiry timestamp at the time of creation|
Steps in processing payments via Paytm Link API
STEP 1: Get your authentication keys
Generate your staging account credentials from the dashboard -
- MID (Merchant ID): This is a unique identifier provided to every merchant by Paytm. MID is part of your account credentials and is different on staging and production environment. Your staging MID is available here and production MID will be available once your activation is complete
- Merchant Key: This is a unique secret key used for secure encryption of every request. This needs to be kept on server side and should not be shared with anyone
Please note: Client Secret and Merchant Key are secret keys used for encryption so never share these with anyone.
STEP 2: Create a Payment Link & share it with your customer.
Demo of Link Creation
The following is a representative demo of how you can create payment links in your own application -
- Create a Payment Link with the Create Link API. You can specify the mobile number and email of the customer if you want to send this link to the customer on Email & SMS respectively
- You can modify the link anytime using the Update Link API. Please note you can only modify the Link Description and Expiry date.
- You can cancel a link anytime using the Expire Link API. Your customer would not be able to complete payment once the link is expired.
- You can resend the Link to your customer on any Email ID and Mobile number by using the Resend Link API.
STEP 3: Payment Confirmation and Reconciliation
- Once your customer has completed payment via the link, you will receive a Payment Callback Notification on your server basis which you can update the payment status at your end.
- To check if any payments have been made against the link please use the Fetch Transaction API.
- You can use the Fetch Links API to show the list of Links created in your own dashboard. Use the Fetch Transaction API to fetch details of payments made against these links
STEP 4: Managing Refunds
If you need to cancel or refund a successful transaction, you can do so by simply sending a Refund API request and ensuring success using the Refund Status API.
REFID - REFID parameter in Refund API should mandatory be sent as Unique ID for every refund request sent to Paytm.The refund request can fail due to insufficient funds in MPA (Merchant Payable Account). For failure refund status, the merchant can retry refunds. However, for Pending refunds merchant should not retry refund.
On completion of your integration
Once the test transaction is complete, move your code to live environment with production account details. Note that production accounts details are available after you have activated your account on the dashboard.
In case of any issues with integration, please get in touch.