#bucknermr_best-practices

1 messages ยท Page 1 of 1 (latest)

steel daggerBOT
#

๐Ÿ‘‹ 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/1288959668768608429

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

hollow ledgeBOT
blazing sundial
#

Hi there ๐Ÿ‘‹ if your goal is to check whether the Subscription went into an active state, I'd suggest focusing on the Subscription related Events and the status of the Subscription object.

austere vessel
#

Thanks @blazing sundial, that was my hunch as well, particularly for webhooks. However, the flow we're trying to build is that the customer is redirected to the checkout session return_url, and we want to redirect them to a success page if the subscription was succesfully created.

The hope is that the checkout session status could be the source of truth here, but if it's possible there is also a small window where the checkout session is status complete, but the subscription is still incomplete, we're not sure how to handle that. I know our webhooks would catch the subscription status update, but in the meantime we want to show the customer something.

Is it safe to say that the subscription will become active (or trialing) once the checkout session is complete?

blazing sundial