How to Enable Razorpay Payment Notifications
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
When you enable the Payment Notifications for Razorpay, your users will be able to receive payment acknowledgment notifications easily and efficiently.
You can follow the steps mentioned below in order to enable notifications for Razorpay Payments:
Step 1: You will have to get the Haptik callback URL, which is https://<MD_Base_URL>/razorpay_notifications/
Step 2: Navigate to your Razorpay account > Settings > Webhooks, and select Webhook and Edit it. Here, you will have to add the Haptik Callback URL in the Webhook URL field, as shown.
Step 3: Next, you need to select these two events under Active Events field:
- payment.failed(for failed payment events)
- order.paid(for successful payment events)
After you have selected the events, click on Save Webhook button.
Step 4: Navigate to your Haptik bot, and in the ‘Payments API integration’ Code Step, you will have to pass a few fields as part of the payment link API. This needs to be passed in the notes field of the payload as custom data, which will then be used at the backend for triggering notifications.
Of all the fields shown in the image, the message field is configurable. It is basically the notification message that will be shown to the user on successful payment.
Once you are done with the above, you can now test out the flow.