#valahaar_api

1 messages ยท Page 1 of 1 (latest)

quiet knotBOT
#

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

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

deep flower
#

hi there!

shrewd flower
#

oh I see! I tried adding 40 free trial days but with then I advanced time with the test clock and the customer was billed again once the trial was over

#

but it kind of messes with the UI (we show different things based on whether you have an active trial or a "standard" sub)

#

is there an alternative?

#

reading through that doc page I see I can set the billing cycle anchor to "now"
if I were to do this in 30 days, would it bill the user somehow? or does setting proration_behavior=none in the request prevent the new invoice / billing?

quiet knotBOT
deep flower
#

I (we show different things based on whether you have an active trial or a "standard" sub)
You could use metadata to know if it's a "real trial" or not
is there an alternative?
not really

shrewd flower
#

You could use metadata to know if it's a "real trial" or not
I mean sure, a workaround is easy to find. was just wondering if it was possible to do in a "legit" way somehow, didn't seem like an edge case tbh ๐Ÿ˜„

thick flint
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

shrewd flower
thick flint
#

if I were to do this in 30 days, would it bill the user somehow?
by passing proration_behavior: 'always'

#

or does setting proration_behavior=none in the request prevent the new invoice / billing?
correct

shrewd flower
#

so to achieve this without free trial days I can set myself a reminder to run this command in 30 days, right?

curl https://api.stripe.com/v1/subscriptions/sub_XXXXXX \
  -u sk_test_...: \
  -X POST \
  -d "proration_behavior=none" \
  -d "billing_cycle_anchor=now" \
  -d "cancel_at_period_end=false"
#

and it should work if I were to test this with clocks as well right?

thick flint
#

so to achieve this without free trial days I can set myself a reminder to run this command in 30 days, right?
you can use subscription schedules actually

#

and it should work if I were to test this with clocks as well right?
yes

shrewd flower