#carol_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1222644918183395371
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
This is for Subscriptions with a trial?
Oh you said with a promo code
So same idea
Then yeah, it is up to you really for what you consider "subscribed"
Actually, you are correct - it's with a trial. Sorry!
But setup_intent.succeeded would indicate that you successfully collected a PaymentMethod from them
So there will be an actual payment attempt when the trial ends.
Would there ever be an instance where I had setup_intent.succeeded but the actual payment would fail?
The renewal payment that occurs at the trial end? Yes, certainly possible.
ok. One more question - during renewal, would I again get a setup_intent.succeeded, or is that only when the user fills out the form (Stripe Elements payment attempt)?
That is only when the SetupIntent is confirmed (so yes when you collect Card details via Stripe Elements)
On renewal you want to listen for customer.subscription.updated
That will indicate what happened with the Subscription -- you look at the status to know if the payment failed
Oh I see... I had just been looking at invoice.payment_succeeded and renewing our customers based on that
That does work too
Just a different route
But yeah that can get confusing with regards to the initial Invoice
Ok - thank you very much - this helps!
Sure thing