#lukez_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ 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/1299096596310528010
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐
The supported enum values for pause_collection.behavior can be found in our API ref:
https://docs.stripe.com/api/subscriptions/update?lang=dotnet#update_subscription-pause_collection
and they are the ones you listed.
Their behavior is explained in our guide for pausing Subscriptions:
https://docs.stripe.com/billing/subscriptions/pause-payment
If you want to pause the Subscription in such a way that the customer doesn't have to pay, that's the first use case in that doc and you'd use void.
You should note the Invoice for the full amount will still be created, it'll just be voided. If you want to create $0 invoices for the free portion of the Subscription you'll want to use Subscription Schedules with a $0 Price instead.
You can use Test Clocks to see exactly how the pausing behaves over the lifecycle of a Subscription in testmode:
https://docs.stripe.com/billing/testing/test-clocks
I'll respond tomorrow, I have to head to bed now because of an appointment tomorrow
These discussions are meant to be synchronous, so i'll be closing the thread if you're heading out. If you have a question after reviewing those materials please open a new thread with those questions when you're around.
okay, wait a moment please
You should note the Invoice for the full amount will still be created, it'll just be voided. If you want to create $0 invoices for the free portion of the Subscription you'll want to use Subscription Schedules with a $0 Price instead.
Hmmm... I have to look up Subscription Schedules.
We talk about them in more detail here:
https://docs.stripe.com/billing/subscriptions/subscription-schedules
And the use case we have documented that is most closely related to what I described is this one:
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#changing-subscriptions