How to Find Razorpay API Keys and Webhook Secret
How to Find Razorpay API Keys and Webhook Secret
To connect Razorpay to your restaurant dashboard, you may need your Key ID, Key Secret, and Webhook Secret. Follow the steps below to locate these details in your Razorpay account.
1. Find Your Key ID and Key Secret

- Log in to your Razorpay Dashboard.
- Select the required mode: Test Mode for testing or Live Mode for accepting real payments.
- Go to Account & Settings → API Keys. Depending on your dashboard layout, this option may appear under the website and app settings.
- Click Generate Key if you need to create a new API key for the selected mode.
- Copy the Key ID and Key Secret when they are displayed.
- Store both credentials securely.

2. Find Your Webhook Secret

- In the Razorpay Dashboard, open Account & Settings → Webhooks.
- Open the existing webhook configuration, or create a new webhook if required.
- Locate the Secret field in the webhook configuration.
- Copy the Webhook Secret you configured for that webhook.
The Webhook Secret is separate from the API Key Secret. If you cannot view the existing secret, edit the webhook and set a new one if needed. Make sure the same secret is entered in your restaurant dashboard.
3. Enter the Credentials in Your Restaurant Dashboard
- Log in to your restaurant dashboard.
- Go to Settings → Payments → Payment options.
- Open Manage gateways and select Razorpay.
- Enter the credentials in the matching fields:
- Key ID: Your Razorpay API Key ID.
- Key Secret: Your Razorpay API Key Secret.
- Webhook Secret: The secret configured for your Razorpay webhook.
- Review the details and click Save.
4. Important Notes
- Use Test Mode credentials only for testing and Live Mode credentials when configuring live payments.
- Do not mix Test Mode and Live Mode credentials.
- Never share your Key Secret or Webhook Secret publicly.
- If you regenerate an API key or change your Webhook Secret, update the corresponding details in your restaurant dashboard.
- Test the integration before accepting live payments.
Official Razorpay guides:
Updated on: 21/10/2026
Thank you!
