1. Home
  2. Docs
  3. AcadLix
  4. E-Commerce and Monetizati...
  5. RazorPay

RazorPay

Razorpay is one of the most popular payment gateways in India, allowing you to accept payments through UPI, Netbanking, Credit/Debit cards, and wallets. Acadlix provides direct integration with Razorpay so that you can start selling courses easily.

Step 1: Create a Razorpay Account

  1. Go to https://razorpay.com and sign up for a Razorpay account.

  2. Complete the KYC verification to enable live transactions.

  3. After verification, you’ll get access to API Keys.


Step 2: Get Your Razorpay API Keys

Log in to your Razorpay Dashboard.

RazorPay Home

Navigate to the Payments

Navigate to payments razorpay

Click on Account & Settings

(Enable the Test Mode to get the sandbox credentials first)

Enable the test mode

Click on API Keys

goto API keys

Click Generate Test Key

create new test keys razorpay

Or if you already see any key in your account, then click Regenerate Test key

Regenerate razorPay keys

Verify the OTP, if you have enabled the 2-step verification

otp verification razorPay

You’ll get two values:

    • Key ID

    • Key Secret

Copy these keys and keep them safe.

Download razorpay keys

Step 3: Configure RazorPay Webhooks

Navigate to the webhooks

Razorpay webhoook page

Click Add New Webhook

RazorPay Add webhook

A new Modal will appear to fill the required details

RazorPay webhoook entries

For webhook URL, navigate to your website’s dashboard → Acadlix → Settings → Payment → RazorPay and click the Copy button.

Acadlix Razorpay webhook url copy

Navigate back to RazorPay and fill in the required details.

  • Webhook URL copied from your site
  • Type a Secret and keep it safe, as it will be required for the integration.
  • Select the Active Events : payment.authorized and payment.failed.

RazorPay webhook entries filled

If you are using the subscription module, enable the following additional webhook events: subscription.charged, subscription.authenticated, subscription.activated, subscription.paused, subscription.resumed, subscription.cancelled, subscription.completed, subscription.pending, subscription.halted

Click Create Webhook.

Note: By following the exact same process, you can create your RaorPay live key and salt details.

Step 4: Configure Razorpay in Acadlix

  1. Log in to your WordPress Admin Dashboard.

  2. Go to Acadlix → Settings → Payments.

  3. Select Razorpay from the list of available gateways.

  4. Enter the following details:

    • Razorpay Key ID

    • Razorpay Key Secret

    • Razorpay WebHook Secret

Acadlix RazorPay blank settings

Click Save.

Step 4: Test Your Integration

  1. Make a test purchase of any course using Razorpay test cards/UPI provided in the Razorpay Test Docs.

  2. If the payment is successful, you’ll see the order marked as Completed in Acadlix.

  3. Disable Sandbox mode when you’re ready to go live.

Step 5: Start Accepting Payments

  • Add the live key, salt, and webhook secret.

  • Students can purchase courses using UPI, Netbanking, Debit/Credit Cards, and Wallets.

  • Orders will automatically be created and marked Completed once Razorpay confirms the payment.

  • Students will get instant course access after successful payment.

How can we help?