#medotarek.

1 messages ยท Page 1 of 1 (latest)

lost impBOT
hollow bone
#

๐Ÿ‘‹ happy to help

torn vector
#

Appreciate that ๐Ÿ˜‡

hollow bone
#

would you mind sharing the event that failed?

torn vector
#

this is a sample while i am using stripe cli from the logs

#

and this one while i am using the ngrok

hollow bone
#

this means you're having a issue with the Webhook signature

#

when using the Stripe CLI

#

you need to use the whsec_xxx that is display when you launch stripe listen --forward-to

torn vector
#

that's what i am aleady doing

here's the hook code

hollow bone
#

you see the webhookSecret?

#

this should be changed to whatever the terminal outputs when you run stripe listen

torn vector
#

do you mean i should get the key from here if i am using the online hook

but in case i am using the cli i should update this one with the one which shows into the terminal isn't it ?

hollow bone
#

yes that's correct

torn vector
#

ok that's great i will i just release that the online on is differant
but is this the correct approch to get the payment_method_id or confirmenting the order (by using webhooks) or there's another best practice to do this
incase i am using nodejs + flutter

hollow bone
#

it should be yes

torn vector
#

thanks a million