#litterboks_best-practices

1 messages ¡ Page 1 of 1 (latest)

noble etherBOT
rancid gulchBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

noble etherBOT
#

👋 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/1229737144797495296

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

rancid gulchBOT
azure merlin
#

It looks like subscription schedules could be useful for this but I'm not sure.
Maybe i could schedule a subscription to start at the expiry date of each transferred domain?

hallow helm
#

Hi, let me help you with this.

azure merlin
#

Hello!

hallow helm
#

Will the customer be charged at the same time for all items?

azure merlin
#

I would love to be able to use stripe checkout and combine all different items, however this is not possible for subscriptions with different cycles.
So my thought process was:
Create a subscription with all items, split the subscription in two as soon as they are not the same interval anymore

#

Then use the same billing method as used initially

#

Means, the customer will be charged at the same time for all new domains but in a different interval for all transferred domains

hallow helm
#

You know when the transfered domains will expire, so I assume you might want to display the complete breakdown on the Checkout Session, which might be difficult if you plan to modify it during the billing period.

#

Is it about a different interval? (e.g. yearly vs quarterly) Or the billing date?

azure merlin
#

I will list the items as follows:

test.com (Transferred) - 0.00$
test2.com (Transferred) - 0.00$
test3.com - 12.5$

Later customers can see the expiry date in their dashboard, i don't show the date in the checkout session.

The intervall will be the same but it will start at different times.

Example:

test3.com is new and starts immediately and will renew after a year.
test2.com is free until may 1st. Then it will start a subscription with yearly interval.
test.com is free until june 1st. Then it will start a subscription with yearly interval.

hallow helm
#

Yeah, I guess having separate Subscriptions for each transfered domain makes sense. Subscription Schedules won't help here since they still need to have the same billing cycle.

azure merlin
#

If possible i want to

Start a subscription with all items but already schedule when to remove the free items from this subscription
And also schedule separate subscriptions at those dates which last a year

hallow helm
#

You can listen to customer.subscription.created webhook event and update the Subscription to remove all $0 line_items.

#

And also schedule separate subscriptions at those dates which last a year
You can as well add a trial to those Subscriptions to keep things simple.

azure merlin
#

I need to look up how trials work, just a second please

#

When a trial ends, is the end of the trial the start of a billing interval? Or is the interval start date the same as the trial start date?

hallow helm
#

the end of the trial the start of a billing interval
Yes

azure merlin
#

Can i set the exact date and time for a trial to end?

#

Oh yes i found it

#

Hmm ok so to sum it up:

The user makes a checkout
I have 3 items
2 new -> Combine to one subscription, regular flow
1 transferred -> Create a separate subscription with trial which is set to expiry date of the domain

At the end of the trial I create an invoice for the second subscription.

#

I don't want customers to see this as "Your trial is ending" or something, they already bought that domain somewhere and its just transferred to us. Do you know if the wording mentions trial anywhere?

hallow helm
#

At the end of the trial I create an invoice for the second subscription.
No need to do anything manually. The Invoice will be created automatically.

hallow helm
azure merlin
#

On the invoice or an email when the trial is created or something

hallow helm
#

If you're collecting automatically, only the receipt will be sent.

azure merlin
#

Perfect!

hallow helm
#

... only the receipt will be sent, if you specify it in your settings.

#

Wanted to be more specific, sorry.

azure merlin
#

I'll look into it. Thank you!

If I won't use the trials, is it also possible to schedule subscriptions in the future?

azure merlin
hallow helm
#

Yes, that's one of the use cases for Subscription Schedule, but honestly it's harder to maintain than regular Subscriptions with trials.

azure merlin
#

Ok, I'll propose both variants to my peers

azure merlin
#

Thank you, you helped me a lot

hallow helm
#

Happy to help.