#alex32_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1249734902295822419
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello
How are you attempting to test Webhooks here?
For instance for that Event you shared there was no Webhook sent because it doesn't look like you currently have an endpoint nor are you fowarding via the CLI?
Hi Bismack, I'm not usingStripe CLI but I do have an endpoint: the webhook isregistered at example.com/stripe/webhook and I've a route on it pointing to: StripeWebhookController which in turn will save the transaction to dB. I did this in laravel 10 and it was working. Not sure why it doesn't in lara 11.
Okay I do see you have Webhook endpoints set up but none of them are listening for checkout.session.completed which is the Event type you shared above
That said, your Webhook handler is returning a 419 response
So there seems to be an issue within your Webhook handler code
So let's pause for a second. What does "not working" mean to you?
Like you aren't seeing anything come through your Webhook handler code at all?
Or you don't understand why a 419 is being returned by your code?
Thanks, I understood 419 is returned because the session timeout, which in turn I suppose, is bacause my app was unable to handle the webhook. I don't know why. Yes the webhook may not listen to checkout.session.completed but it'd listen to all others events (attached). Stripe dashboard setup worked in laravel 10 and I didn't change anything there, so it must be missing something in lara 11.. https://snipboard.io/tJbwgl.jpg
Okay yeah so that sounds like a config issue on your server if there is just a timeout
I don't really know anything about Laravel so I likely won't be able to help much in that case
But you would need to do some research into that or speak to Laravel folks about how to get your server endpoint set up
Thanks, I did it already (link above to laracasts..)