Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

242
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda