Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

237
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda