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

203
Visualizações
Stripe Webhook JSON_DECODE not working (500)

I'm having trouble getting stripe webhooks to work, this is my code:

            require_once('/var/www/html/application/views/config.php');

            \Stripe\Stripe::setApiKey("sk_test_***********");

            $input = @file_get_contents("php://input");
            $event_json = json_decode($input);

            //$event = \Stripe\Event::retrieve($event_json->id);

I've verified that $input is receiving the json data, but the $event_json variable is always empty.

I'm really confused by this, it seems like the json_decode is not working even though $input contains the correct data.

Can anyone shed some light on this?

Thanks in advance!

over 4 years ago · Santiago Trujillo
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