#Elian Braja

1 messages · Page 1 of 1 (latest)

tulip wadiBOT
spring orbit
#

Hi there!

west slate
#

hi

spring orbit
#

To test webhook locally you should use the Stripe CLI with the stripe listen command (something like stripe listen --forward-to http://localhost:4242). And in the terminal it will display the webhook secret https://stripe.com/docs/cli/listen

west slate
#

an this is not the case of the live mode, correct?

spring orbit
#

What do you mean? Usually testing webhook events locally is done in test mode.

west slate
#

no, I am just asking

spring orbit
#

For live mode we recommend creating webhook endpoints in the dashboard.

west slate
#

when I will go live I will copy the secret in the dashboard

spring orbit
#

Correct

west slate
#

thanks

#

I have another question. In test mode I don't wat to receive all events but just one of them,

#

I tried stripe trigger payment_intent.succeeded

#

but then when I do
stripe listen --forward-to localhost:3000/stripe/webhook

#

All evens\ts created hit my backend