#mehdi_code

1 messages ยท Page 1 of 1 (latest)

ionic cobaltBOT
#

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

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

wheat zephyr
#

Hi there

crimson mesa
#

hmmm actually this code doesn't work how i expect either

wheat zephyr
#

No, there isn't a built in time function that's specific to the Stripe library

crimson mesa
#

like ideally a 1 month trial starting on jan 31st would end the trial on feb 28th

wheat zephyr
#

Got it, you'll need to calculate this yourself and pass it as a timestamp value for trial_end or use trial_period_days

crimson mesa
#

hmmmmm

#

i guess then if they start a trial on jan 31st

#

and i want to give them 1 free month

#

there is no way for their billing anchor to be the 31st of the month?

wheat zephyr
crimson mesa
#

hmmm not sure that would solve it but it's okay, we switched to using 30 days for a free trial

#

I have a different question about the subscription creation endpoint

#

if I specify a discount, then the customer's discount will not be applied. Is there a way to prevent the customer's discount from being applied even if I don't specify a discount?

ionic cobaltBOT
chilly shell
#

hi there! ๐Ÿ‘‹ taking over for my colleague

crimson mesa
#

ahhh it would be nice if there was something to pass in to disable their coupon without having to remove it

#

that way i don't have to worry about re-adding it