#SamiK-webhooks

1 messages · Page 1 of 1 (latest)

tawny flax
#

@tepid slate hi! could you share the exact error message and stack trace?

tepid slate
#

Notice: Undefined index: HTTP_STRIPE_SIGNATURE in C:\laragon\www\themeid\wp-content\themes\themeid.net2\templates\webhooks.php on line 13

#

Error message in console: Failed to load resource: the server responded with a status of 400 (bad request)

tawny flax
#

how exactly do you test the page?

#

it sounds like you're opening something in your web browser?

#

(that would not be correct and is probably the problem)

tepid slate
#

refresh the page

tawny flax
#

which page? But yeah, you never should be visiting webhooks.php in a browser.

#

you test it by sending a webhook event to it from Stripe (e.g. calling stripe trigger)

#

(you're probably confusing success_url for Checkout with webhooks, they're separate things and two different pages/scripts)

tepid slate
#

I do stripe trigger and on the stripe local webhook listener page it says received events 3 and there is a new payment.

#

so the only way to visually see what's been sent is to look at the dashboard received events tab?

tawny flax
#

yep! or log it in your own code somewhere (like write to a file or the PHP error log or so on) if you want to check/debug things

tepid slate
#

ok, thanks