#bfitz_1992

1 messages ยท Page 1 of 1 (latest)

paper templeBOT
jovial kite
#

Hello ๐Ÿ‘‹
I don't exactly get the question, would you mind sharing an example of the usecase you're thinking about?

You can have a schedule cancel a subscription once it's done by defining end_behavior
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior

knotty bluff
#

Hi! Sorry, I mean if a user wants to cancel at the end of the current phase, not necessarily at the end of the last phase. For example, let's say we have this schedule:

  1. Sept 11 -> Oct 11 at $5/month
  2. Oct 11 2023 -> Oct 11 2024 at $2/year

If a user cancels today, as far as I can tell, that second phase will be removed and end_behavior becomes cancel.

Is it possible to set the subscription to cancel on Oct 11 without removing that second phase? In case the user has a change of heart, wants to uncancel, and we're all set to renew them at $2/year again?

jovial kite
#

I see. I don't think that's something subscription schedule can currently support. What you can do instead as an alternative is when the user requests cancellation, you don't make a request to cancel the subscription/schedule until the period end date.

This would allow you to mimic how "cancel_at_period_end" works but with subscription schedule

knotty bluff
#

Hmm that's an interesting idea, I hadn't thought of that. But okay thanks!