#carol_api

1 messages ¡ Page 1 of 1 (latest)

granite kettleBOT
#

👋 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.

obtuse cipherBOT
tiny dagger
#

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"

cedar cargo
#

Actually, you are correct - it's with a trial. Sorry!

tiny dagger
#

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.

cedar cargo
#

Would there ever be an instance where I had setup_intent.succeeded but the actual payment would fail?

tiny dagger
#

The renewal payment that occurs at the trial end? Yes, certainly possible.

cedar cargo
#

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)?

tiny dagger
#

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

cedar cargo
#

Oh I see... I had just been looking at invoice.payment_succeeded and renewing our customers based on that

tiny dagger
#

That does work too

#

Just a different route

#

But yeah that can get confusing with regards to the initial Invoice

cedar cargo
#

Ok - thank you very much - this helps!

tiny dagger
#

Sure thing