#nikivi
1 messages · Page 1 of 1 (latest)
for reference my web hook code is here https://github.com/learn-anything/learn-anything.xyz/tree/main/api/stripe
I invite you to check this guide for testing webhook in local:
https://stripe.com/docs/webhooks#test-webhook
When you heat stripe listen ...
You have the webhook secret
don't close the terminal when calling stripe listen
oh ok
yea i see secret
but in my http gui thing
i pass it as header or what
to not get bad requests
want I want is to test that on checkout.session.completed my db query runs correctly
it takes in a unicode time stamp until what date membership is valid
and sends db query
right now I can't reach the checkout.session.completed stage
unless i misunderstand what you meant
i pass it as header or what
No, it's mentioned in the guide I shared with you
I invite you to read it completly and walk through it step by step
You need to use the webhook secret in order to verify the event signature:
https://stripe.com/docs/webhooks#verify-official-libraries