#pro-pooja_webhooks

1 messages ยท Page 1 of 1 (latest)

strange dewBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262698806588342292

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

crystal moat
#

๐Ÿ‘‹ happy to help

#

what do you mean by triggered by Stripe? as in for subscriptions?

polar shadow
#

Yes, charging for the subscription cycle. We have setting to charge user after some interval of failure

crystal moat
#

ok so there's a lot of thing that we need to address here

#

in all cases we normally don't recommend using the charge.* events when other events are available

#

so for example if you're creating a PaymentIntent we recommend using the payment_intent.* events

#

for subscriptions we recommend using invoice.* events

#

and if you have both recurring and one-off payments when you receive payment_intent.* events you check the invoice property on the PaymentIntent and if it's not null then you ignore the event

#

and you deal with it on the invoice side of things