How to integrate Razorpay within the CRM

SEARCH OUR BLOG

CATEGORIES

FOLLOW US

Business users are able to process payments via Razorpay, a payment provider popular in India. This integration is available as a marketplace application under App Marketplace menu inside a sub-account and also available upon clicking on the Search for More options inside Payments -> Integrations

cGM38lkSCd8himqlO0oJsISt rPGSvI eQ

The integration provides capabilities to accept one time, custom amounts as well as recurring payments across all channels like order forms, invoices, payment links, forms, contacts page among others. This also provides subscription management like cancellation, updating a card on file or refund related capabilities

24M t65AjM C10oGXduK3C897S57ED9Jvg

Sub-account users will be able to install the application from the App Marketplace, authenticate using the necessary API keys, and grant necessary permissions to start accepting payments using Razorpay.

To successfully connect Razorpay with your system, please follow these four essential steps:

  1. Install the Razorpay App
    Navigate to the App Marketplace and install the Razorpay application.

  2. Authenticate Using API Keys
    Copy your Razorpay API keys from the Razorpay dashboard (Accounts & Settings → API Keys) and paste them into the app authentication page.

  3. Configure Webhooks
    In your Razorpay dashboard (Accounts & Settings → Webhooks), add the following Webhook URL:
    https://backend.leadconnectorhq.com/razorpay/webhook
    Be sure to enable all payment-related events for proper syncing.

  4. Register and Whitelist Your Domain

    • In your GHL dashboard, go to Settings → Business Profile → Branded Domain and register the domain you’re using. Make sure to verify and click on update information. 

    • Next, log in to your Razorpay dashboard and go to Accounts & Settings → Business Website Details → Add Additional Website/App Details.
      Add the same branded domain here. Razorpay will verify and enable it.

      Note: Razorpay only allows payment acceptance from domains that have been whitelisted on their dashboard.

dPoQMqwLdRm suaWk lrOlU8iKKfIcRorw

0K6GPMGTrW4t

ZyWe2x3yglTf1I1OQZ4tpWw MNA6oBHSqw

Once the app is installed, the Authentication page would be displayed which would require you to plug in your API keys from the Razorpay dashboard. Navigate to Accounts & Settings -> API keys to get the API keys from your Razorpay dashboard. 

3zOKWp0Fvr9avNgbDH bVS c2Mnt LBe4Q

For smooth functioning of the integration in fetching the transaction statuses from Razorpay, it is required that you also paste the given link in your razorpay dashboard under Webhooks (Accounts & Settings -> Webhooks). Make sure that you select the following webhooks events to not lose out on any feature

4a6 JrR2U35cs14zYq UoWzPW9ivayIGjQ

Also, add any branded domain that you are using inside the Razorpay dashboard (Accounts & Settings -> Business website details)

The application would in no way differ from the existing payment integrations like Stripe/NMI/Authorize.net and would have full capabilities for payments including post purchase automations like automated sales receipts, refunds, payment received and order submitted triggers or giving discounts via coupon codes