Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
How to use razorpay webhook in strapi? Webhook is not sending data to URL

I am adding a payment gateway on my Strapi and Next.JS website using Razorpay. I have successfully added the payment procedure and everything is working. Now I want to check if payment is successfully done or not using Razorpay webhook. I am trying like this:-

async verification(ctx) {
    try {
      ctx.send(200);

      console.log(ctx.request.body);
    } catch {
      error;
    }
  },

The function is in strapi's createCoreController. My custom.js file in routes foelder is:-

module.exports = {
  routes: [
    {
      method: "POST",
      path: "/orders/verification",
      handler: "custom.verification",
    },
  ],
};

Because we can't use Razorpay's webhook in localhost, I have tunneled my localhost using ngrok and put the URL of ngrok in webhook. I am getting no request by webhook and even I can't make a request on the URL of ngrok, although I can on my localhost. Please help.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!