#worming_best-practices

1 messages ยท Page 1 of 1 (latest)

quaint questBOT
#

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

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

shut bison
#

Hello

shut blade
#

hi bismarck

shut bison
#

Yep, the best way to do this is to use a Subscription Schedule as you noted. The other way would be to track this internally and add an invoice item at the one-year renewal to be picked up by that next Invoice.

shut blade
#

ok, the subscription schedule is a free feature?

shut bison
#

Yes there is no added cost that I'm aware of for using a Subscription Schedule. Just the normal Billing fees apply

shut blade
#

ok cool, since we need to pinpoint the exact moment for scheduling the update, could you tell me how can we determine the current month of the subscription?

#

what subscription property should i look?

#

we are planning to get the invoice paid event, and at that moment to the math

shut bison
#

Are you talking about if you do this yourself by adding an invoice item?

shut blade
#

well, we will have to schedule the update for each year

#

i mean, let say a customer purchase a subsctiption today... we create the subscription with the 2 items... 1 is montlhy, the other one is a one time item

#

but after a year, we need to add the item again, and so on

shut bison
#

No the Subscription Schedule does this for you

shut blade
#

for the entire life of the subscription, on each month that start the year of the subscription we want to add the one time item

shut bison
#

So what you do is you create the Subscription and add the initial Invoice Item for the first year.

#

Then you attach a Schedule

#

Each phase of the Schedule is 12 iterations of the monthly Price

#

And it has the one-time item as well

#

I believe we limit you to 10 phases

#

So you can schedule out for 10 years

shut blade
#

ohh i see

#

ok cool, im going to test it

shut bison
#

๐Ÿ‘

shut blade
#

now stripe have the clocks to advance in time

shut bison
#

Yep

#

Should be able to test end-to-end

shut blade
#

cool, thx bismarck

shut bison
#

Sure

shut blade
#

i will let you know if i have any other question