#emak_end-trial-behavior

1 messages ยท Page 1 of 1 (latest)

umbral hornetBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1261328907647451147

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

ashen cape
#

Hi there ๐Ÿ‘‹ if you don't want the Subscription to become active at the end of the trial period, what are you hoping it will do instead?

obsidian trail
ashen cape
#

Gotcha, it is expected for trial Subscriptions to transition to paid Subscriptions when the trial period ends.

If you want to pause the Subscription, you would need to make a request to pause it.

If you want to cancel it you can either make a request to cancel the Subscription, or you can use cancel_at to schedule the cancelation of the Subscription:
https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at
You can set provide the same timestamp you're using for trial_end to align the cancelation with the trial ending.

obsidian trail
#

Thanks! Would either pausing or canceling still allow them to active it with the API call I already have setup to mark active

#

Like pause -> active and cancel -> active are all viable?

ashen cape
#

I'm not sure I understand. You can't "mark" a Subscription as active, it either is active or is in another state. Can you elaborate on what the call you're referring to does?

obsidian trail
#

Sure, so say the trial hits the canceled_at date and its now canceled (or paused). I would like the customer to be able to uncancel it and start paying for that subscription maybe a few days after the trial is over

ashen cape
#

That's not possible, canceled is a terminal state for Subscriptions. They can't be reused once they're canceled.

#

You would create a new Subscription for the Customer instead.

obsidian trail
#

Would pause be different?

ashen cape
obsidian trail
#

Awesome, thank you. Just one more question. So we can schedule canceling via cancel_at but is there an equivalent for pause?

#

Or that is something we need to trigger on our side via API

ashen cape
#

That's something you'd trigger by making a request to our API. The doc I linked in my previous message walks through how to pause a Subscription, and how each of the available pause behaviors works.

obsidian trail
#

Awesome, I think that answers my question

#

Thank you!

ashen cape
#

Any time, happy to help!

#

In case you haven't already found them, Test Clocks are incredibly useful for testing these Subscription flows so you can see exactly what the full lifecycle of the Subscription will look like without having to wait for a ton of time to pass:
https://docs.stripe.com/billing/testing/test-clocks