💳 Setting up Razorpay as a payment method

📚 Learn how to integrate Razorpay as a payment method in your Planify X platform. This tutorial will guide you through generating your Client ID, Client Secret Key, and configuring the Webhook URL for seamless payment processing.

💡 PRO TIP: Click here to hire an expert to guide you in the step by step. Book a call now to learn all the tips and tricks for training your AI, or let us handle it all for you instead.

Razorpay is a leading payment gateway offering fast and secure payment solutions for businesses. By integrating Razorpay with your platform X, you can provide your users with a reliable method for subscriptions and payments. This guide walks you through generating the necessary credentials, configuring the Webhook URL, and setting up required events, ensuring a smooth integration process.

Log in to Your Razorpay Account.  Visit Razorpay’s website and log in with your credentials. If you don’t have an account, sign up and complete the onboarding process, including verifying your business details.

Generate Your Client ID and Client Secret Key. Once logged in, select the mode (Test or Live) for which you want to generate the API key:

  • Test Mode: The test mode is a simulation mode that you can use to test your integration flow. Your customers will not be able to make payments in this mode.
  • Live Mode: When your integration is complete, switch to live mode and generate live mode API keys. In the integration, replace test mode keys with live mode keys to accept customer payments.

Navigate to the Account & Settings > API Keys section. Click Generate Key to create a new Client ID and Client Secret Key. The Client ID identifies your application to Razorpay. The Client Secret Key is used for secure communication between Razorpay and your platform.

Copy them. You can also click on Download Key Details to save them to your computer.

Paste both the Client ID and Client Secret Key. Log in to your platform’s admin panel. Navigate to Settings > Payment configuration > Razorpay and paste them on the corresponding fields. Then, copy the provided Webhook URL.

Add the Webhook URL in Razorpay.  Return to your Razorpay dashboard. Go to Account & Settings > Webhooks.

Click Add New Webhook and paste the Webhook URL from your platform. Under Active Events, check the box for subscription.charged. Add an alert email, and leave the Secret blank. Finally, save your webhook settings by clicking on Create.

Finish the Setup in your platform. Enable One-time payments and/or Recurring payments. Finally, click on the Save button at the bottom of the page to keep your changes.

Test the Integration.  Razorpay will now be listed as a payment method on your platform. Perform a test transaction or subscription setup using it to ensure everything works smoothly.

With this setup, Razorpay is now fully integrated with your platform, allowing secure and seamless payment processing for your users.