Last updated
Was this helpful?
Last updated
Was this helpful?
To successfully integrate Razorpay with BotPenguin, you will need:
A BotPenguin account.
A Razorpay account.
A WhatsApp bot
This integration enables your WhatsApp bot created on BotPenguin to collect payments via Razorpay.
Go to and log into your account.
Navigate to the dashboard and select the WhatsApp bot you want to integrate Razorpay with.
Ensure that this bot is set up for handling customer interactions.
After selecting your WhatsApp bot, locate the Third-Party App Integrations option in the bot settings.
Click on this section to view available integrations.
Search for Razorpay in the list.
Click on the Connect button next to Razorpay.
To connect Razorpay with BotPenguin, you need the Client ID and Client Secret from your Razorpay account.
Steps to Get API Keys from Razorpay:
Log into your Razorpay account.
Use the search bar at the top to search for API Keys.
You will be redirected to the API Key Management page.
If no keys are available, click on Generate New API Key.
Copy the Client ID and Client Secret from this section.
Return to the BotPenguin dashboard.
Paste the Client ID and Client Secret into the Razorpay integration fields.
Save the changes.
To ensure that payment events are tracked correctly, you need to configure webhooks in Razorpay.
Steps to Configure Webhooks:
In your Razorpay account, go to Account Settings.
Find and click on the Webhooks section.
Click on Add Webhook.
Go back to BotPenguin and copy the Webhook URL from the integration settings.
Paste this URL into the Webhook URL field in Razorpay.
Scroll down to select the following events:
payment.failed
payment_link.paid
payment_link.partially_paid
payment_link.expired
payment_link.cancelled
Click Create Webhook to save your configuration.
Navigate back to your BotPenguin bot editor.
Select the payment chat component.
Add Razorpay as the payment gateway from the available options.
Customize the conversation flow to guide users through the payment process.
Your BotPenguin WhatsApp bot is now successfully integrated with Razorpay. You can collect payments seamlessly and track payment events through the configured webhooks. This integration ensures a smooth payment experience for your users directly through WhatsApp.
This page contains al the necessary information on how you can interate the Razorpay with Botepenguin