#DanielIvy - webhook
1 messages ยท Page 1 of 1 (latest)
Hi ๐
To get you started I would recommend first testing out the code we have here: https://stripe.com/docs/webhooks/quickstart
Make sure you can get that running and then change it piece by piece and test it to make sure it still works.
This is actually the code I used
Okay but I want you to run it entirely by itself
Often times errors like these occur because frameworks are doing "helpful" things with the request before it gets to your webhook code.
This might be a stupid question, but how do I run it by itself?
Oh wait...that's right you're using the PHP file, correct?
Yes
Ah yes, sorry. That one doesn't run as a standalone application. Others like Node, Python, or Go run their own lightweight webserver
The signature that you posted looks like the correct shape to me
So the next place you should examine is the request Body.
Ok I will have a look
Ok, I missed
try {
$event = \Stripe\Event::constructFrom(
json_decode($payload, true)
);
And the URL must be HTTP instead of HTTPS.
Thank you for your help.
Daniel