Skip to content
Discussion options

You must be logged in to vote

FOUND THE SOLUTION.

The following code just works for Stripe with AdonisJS 5 for webhook (threw SEO keywords here for others) :
event = stripe.webhooks.constructEvent( ctx.request.raw(), signature, secretKey )

What didn't work was the fact that I used the test mode secret token instead of the one given on the Stripe CLI terminal :
> Ready! You are using Stripe API Version [2022-08-01]. Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxxxxxxxxxx (^C to quit)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HappyLDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant