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

196
Views
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
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!