#tyler_best-practices

1 messages ¡ Page 1 of 1 (latest)

west cipherBOT
#

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

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

spring siren
#

Hi, taking a look here

shrewd canopy
#

Thanks!

spring siren
west cipherBOT
shrewd canopy
#

When the trial is up, will an invoice automatically be generated then?

spring siren
shrewd canopy
#

And will I need to generate the invoice then? Or can I have Stripe do that for me?

spring siren
#

This allows you to test subscription behavaiors without having to wait

shrewd canopy
#

Oh, awesome!

spring siren
#

Sure

shrewd canopy
#

For our annual plan, we prorate to the last 28th day of the year, so it would be just shy of 12 month usually. We need to be able to let the user know what their prorated price will be. Is this possible to be able to know what the upcoming invoice that would be generated would be? Would that be the event you mentioned earlier for this as well?

spring siren
shrewd canopy
#

Do you know when that is created? Is it right after the subscription is create? Any way to know what it would be before the subscription is created?

I am thinking during the checkout we want to let them know what the prorated price would be. I can calculate it, but obviously if I could get that from Stripe it would be better.

spring siren
#

It almost looks like you might want to look at https://docs.stripe.com/customer-management

You create the subscription with the trial. Then, during the trial your customer can use the Customer Portal to manage their subscriptions.

You can control what they can/ can't change there

shrewd canopy
#

I think I looked at that, but it seemed like the URL for the customer portal needed to be generated and was only good for 24 hours or something?

#

Is there a way to get a static URL for them to use?

#

I just don't want to have to make an API call every time they access the console to render the URL

#

Oh, I guess I can just make it a route and handle the redirect after I get the URL from Stripe

#

Ok, this gives me a lot to go off of. Thanks so much

spring siren
#

Sure

shrewd canopy
#

Random question - do you know who built or provides this Discord integration you use? Or was it made in-house?

spring siren
#

Our teammate built it using Discord' API.

shrewd canopy
#

Thanks - it's great.