#baloshi69_api

1 messages ยท Page 1 of 1 (latest)

quick galeBOT
#

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

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

pearl prawn
#

๐Ÿ‘‹ Hi there! Let me take a look

brisk haven
#

yah thansk

#

I want to achive something like this :

A user signs up on March 5th. They get 15 days free trial so their subscription starts on March 20th. Their first payment should be prorated for the rest of March, then they should get charged again on April 1 for the full amount.

pearl prawn
#

Yeah. It looks like this isn't possible with a Checkout Session, but checking options for the Subscription API

brisk haven
#

okey,

pearl prawn
#

Have you tried creating a Subscription with these settings, and seeing if that works as you would like?

brisk haven
#

let me read it

#

Not yet, my client want to give subscription with free trial and then anchor the billing date to evey month 1st ,

#

even if i get user Payment methods and create a subscripiton with free trial and anchor bill date to next month 1 when trial ends user will definalty get charged ,

i am stuck at prorating the period when trial end till next month 1st

pearl prawn
#

Yeah, I think that's a bit tough to move the proration to the next billing period

#

One possibility would be to create a Subscription with a trial that lasts until the first billing cycle anchor, and then use add_invoice_items to manually add a one-off proration to the first invoice