Documentation Index
Fetch the complete documentation index at: https://omnifit-64.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
To successfully integrate Razorpay with OmnifitAI, you will need:- A OmnifitAI account.
- A Razorpay account.
- A WhatsApp bot
Step 1: Login to OmnifitAI and Select WhatsApp Bot
- Go to OmnifitAI 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.
Step 2: Navigate to Third-Party App Integrations
- 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.
Step 3: Obtain Razorpay API Keys
To connect Razorpay with OmnifitAI, 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.
Step 4: Connect Razorpay to OmnifitAI
- Return to the OmnifitAI dashboard.
- Paste the Client ID and Client Secret into the Razorpay integration fields.
- Save the changes.
Step 5: Configure Webhooks for Razorpay
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 OmnifitAI 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.failedpayment_link.paidpayment_link.partially_paidpayment_link.expiredpayment_link.cancelled
- Click Create Webhook to save your configuration.
Step 6: Edit Chatbot Conversation Flow
- Navigate back to your OmnifitAI 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.
