Razorpay
This section contains essential information and usage guidelines for integrating Razorpay with your BotPenguin WhatsApp Agent.
What is Razorpay?
Razorpay is a secure payment gateway that enables businesses to collect online payments through multiple payment methods, including UPI, credit cards, debit cards, net banking, wallets, and more.
When should you use this?
Use this integration when:
You want to collect payments through using WhatsApp
You need customers to complete payments without leaving the conversation.
You want to automate payment collection using Razorpay.
Benefits of Razorpay Integration
π³ Collect payments directly through WhatsApp.
β‘ Support multiple payment methods through Razorpay.
π Receive payment status updates automatically.
π€ Automate payment collection within conversations.
π Provide a seamless payment experience for your customers.
Expected Outcome
After completing this setup:
Razorpay will be connected to your BotPenguin account.
Your WhatsApp Agent will be able to generate payment requests.
Payment status will automatically sync with BotPenguin.
Razorpay can be selected as the payment gateway inside the Payment Component.
π Prerequisites
Before setting up this integration, ensure you have:
A BotPenguin account.
An active Razorpay account.
A WhatsApp Agent.
Access to your Razorpay API Keys.
Permission to create Webhooks in Razorpay.
How to Use Razorpay
1. Open Razorpay Integration
Log in to your BotPenguin account.
Select the WhatsApp Bot you want to configure.
Navigate to Third Party Apps.
Search for Razorpay and click on it.

2. Generate Razorpay API Keys
Log in to your Razorpay Dashboard.
Search for API Keys.

Open the API Keys page.
If you do not already have credentials, click Generate New API Key.

Copy the following credentials:
Key ID
Key Secret

3. Connect Razorpay
Return to BotPenguin.
Enter your:
Razorpay Key ID
Razorpay Key Secret
Click Save Configuration.

4. Configure Razorpay Webhook
To allow BotPenguin to receive payment status updates, configure a webhook in Razorpay.
In Razorpay, navigate to Account Settings β Webhooks.
Click Add Webhook.

Return to BotPenguin and copy the Webhook URL displayed in the Razorpay integration.
Paste this URL into Razorpay.
Select the following events:
payment.failed
payment_link.paid
payment_link.partially_paid
payment_link.expired
payment_link.cancelled
Click Create Webhook.

π How Data Flows
A customer initiates payment through your WhatsApps.
BotPenguin creates a payment request using Razorpay.
The customer completes the payment.
Razorpay sends payment updates to BotPenguin through the configured webhook.
BotPenguin updates the payment status and continues the flow based on the payment result.
π« Limitations
Razorpay Integration is supported only for WhatsApp.
Webhook configuration is mandatory for automatic payment status updates.
Invalid API credentials will prevent the integration from connecting.
Removing the webhook may stop payment status synchronization.
Best Practices
π‘ Configure the webhook before using Razorpay in production.
β οΈ Perform a test payment after completing the setup.
π Keep your API credentials secure.
π― Regularly verify webhook delivery from your Razorpay Dashboard.
Troubleshooting
FAQs
π Completion
π Congratulations! Your Razorpay account has been successfully connected to BotPenguin. You can now securely collect payments through your WhatsApp .
Support
If you still have questions for our team, write to us at support@botpenguin.com. We'll get back to you within 48 hours.
Last updated