#rob_m
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Typically you'd want to handle this using Subscription Schedule Phases
https://stripe.com/docs/billing/subscriptions/subscription-schedules
I could be missing something, but it doesn't look like the pause_collection property can be set with subscription schedule phases
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah you're right, let me check something
Thanks!
Not seeing an elegant way to handle this unfortunately.
Why is it important for pause_collection to be not set until the ned of the term?
We use the pause_collection status on the subscription to determine if a user should be allowed access to our app - while the subscription is paused they have limited access. And it makes more sense for our app to start the pause at the end of the month so that they can use it for the rest of the month they already paid for, then pause for the next 2 billing periods. Does that make sense or am I missing a better way to handle this with the API?
I see. there isn't a way to mark a subscription for "pausing" as such.
Typically Subscription Schedule is used to stack updates to a subscription but it doesn't support pausing either.
You would basically need to call the API manually on the current_period_end
https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks for all your input @proud root , really appreciate your time ๐
NP! ๐ happy to help