- Log into your Razorpay Dashboard with appropriate credentials.
- Select the mode (Test or Live) for which you want to generate the API key.
- Navigate to Settings → API Keys → Generate Key to generate key for the selected mode.
After you connect Razorpay, navigate to Navigate to Ecommerce → Settings → Payment and enable card in payment methods. Also change to currency to INR.
3 – Set up webbook in Razorpay
- Log into the Razorpay Dashboard and navigate to Settings → Webhooks.
- Click the + Add New Webhook button.
- In the Webhook Setup pop-up page: Webhook URL (Todook): https://todook.com/webhooks/razorpay.php Secret: Use your Secret ID generated in step 1 Email: Your email addressEvents: payment.authorized
- Click Create Webhook.