#lukez_best-practices

1 messages ยท Page 1 of 1 (latest)

still houndBOT
#

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

icy bladeBOT
raven pier
#

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

Learn how to pause payment collection on subscriptions.

Learn how to move Billing objects through time in test mode.

sullen mulch
#

I'll respond tomorrow, I have to head to bed now because of an appointment tomorrow

raven pier
#

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.

sullen mulch
#

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.

raven pier
sullen mulch
#

okay, thank you very much ๐Ÿ‘๐Ÿป
I think it can be closed because both questions got resolved ^^

#

Thank you