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

197
Vistas
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 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