#DanielIvy - webhook

1 messages ยท Page 1 of 1 (latest)

torpid sinewBOT
quaint halo
brazen umbra
#

This is actually the code I used

quaint halo
#

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.

brazen umbra
#

This might be a stupid question, but how do I run it by itself?

quaint halo
#

Oh wait...that's right you're using the PHP file, correct?

brazen umbra
#

Yes

quaint halo
#

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.

brazen umbra
#

Ok I will have a look

brazen umbra
#

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

quaint halo
#

Great to hear it worked out!

#

๐ŸŽ‰