#jonthecoder_best-practices

1 messages ยท Page 1 of 1 (latest)

unreal lichenBOT
#

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

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

spark salmon
#

To clarify, I want to essentially treat those X days they were overdue as if they didn't have a subscription at all, without canceling the subscription, and then once they pay, resume it as if the day they paid is the first day of their cycle.

alpine gull
#

Just to clarify, you won't be providing services for the duration they're overdue correct?

spark salmon
#

To the point of your question, they won't have access to the entitlements the paid plan would give them, the site would recognize their privileges the same as a free user until they're current again

#

but because they're paying for a cycle, i want to make sure they're getting a full cycle's worth of time, so I thought modifying the billing anchor date would be the right way to go

unreal lichenBOT
plush halo
#

๐Ÿ‘‹ stepping in

#

So if you want to do this then you need to use a trial period that extends until whenever you want to charge them next.

spark salmon
#

Well, i'm not sure we're on the same page.

Here's a scenario.

They purchase a subscription and are current.

Three months go by, they have insufficient funds. Stripe tries to charge their card and it gets declined. Stripe moves their subscription status to an overdue status.

Their subscription still exists as an object in stripe. It's in recovery.

The customer pays the subscription invoice 3 days later and stripe moves their subscription status back to active.

#

For those 3 days, I'd want my site to treat them as a free user. BUT that means when they finally pay, they lost those 3 days of their subscription. I want to make sure that when they become current, they're given back those 3 days, more or less, by changing their billing anchor so their cycles will now roll over on the new day.

plush halo
#

Yeah you want the new charge to be the current billing cycle anchor +3 days, right?

#

So like the period is from Jan 1 - Feb 1 and they pay on Jan 4

#

Now you want them to have access until Feb 4

#

Instead of Feb 1 ?

spark salmon
#

Yes, in the interest of fairness and TOS compliance and not getting a chargeback

#

I might be able to convince my client to honor the entitlements even when they're overdue, but they seemed to want to essentially pause their entitlements in the interim of payment

plush halo
#

Yeah then what I said above applies

#

The way to move the Billing Cycle Anchor to Feb 4 is to use a trial period

#

So after they pay on Jan 4 you then update the Sub to have a trial until Feb 4

spark salmon
#

Okay, i will give that a shot. thank you.