#pretzeljohn_best-practices

1 messages ยท Page 1 of 1 (latest)

wintry remnantBOT
meager elkBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

wintry remnantBOT
#

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

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

frank fable
#

Hi ๐Ÿ‘‹

So you are adding a new phase and want the current phase to remain unchanged (except perhaps for an end_date)?

indigo tangle
#

Hello! Yes, that's correct

wintry remnantBOT
indigo tangle
#

Should I have put this in "API" instead of "Best practices"

quick briar
#

Hi, taking over as Snufkin_stripe needs to step away, Let me catch up

#

If you're trying to add a new phase and only update the end_date you can pass any previously set parameters that you want to keep AND pass the desired date on end_date. I recommend that you test your flow using our TestClocks, https://docs.stripe.com/billing/testing/test-clocks. This product allows you to move through time when using Billing so you don't have to wait days/ weeks to see the end behavior.

indigo tangle
#

Just wondering if there's a best practice here, or an easier way to do it instead of manually setting each possible field in the phase. Test clocks are great!

quick briar
#

Agree, I use TestClocks almost every day when testing things. There is not an easier way than to pass those parameters I'm afraid.

#

If you don't, any parameters that were previously set are unset for the existing phase unless you pass those in the update request.

indigo tangle
#

Most unfortunate, but thank you for your help!