#isaac_api

1 messages ¡ Page 1 of 1 (latest)

rigid glenBOT
#

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

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

muted helm
#

hi there!

#

the correct way to set a trial is directly when creating a Subscription

hardy current
#

Okay, that's a shame, I want all my pricing info to be configured in one place

It means that the length of the trial for the given product needs to be configured on my side (as opposed to stripe side)

#

Unless there's any other option?

muted helm
#

It means that the length of the trial for the given product needs to be configured on my side (as opposed to stripe side)
I don't really understand the distinction. Instead of setting the trial on the price, you set it on the Subscription.

hardy current
#

Okay, maybe I'm misunderstanding you

Let me upload a screenshot of what I'm trying to achieve

#

I want to present the user with a paywall, with a yearly price and a monthly price. Each price will have a different trial duration - as you can see here it's 7 days for yearly, and 0 days for monthly

#

I want all of that to be remotely configured. My plan was to pull all the details from Stripe Products, and Prices

#

And then create a Subscription from the option that the user selected

muted helm
#

you could add some metadata on the price, that contains information about the trial duration. then when creating the Subscription, pull the metadat from the price to set the correct trial on the Subscription itself.

hardy current
#

Perfect, that works!

#

Thanks for your help

Would love you guys to support the trial duration properly at some point

We are using RevenueCat for our paywall, with a stripe integration, and it would be cool if our GET products/ call to RevenueCat could pull in the stripe trial duration (RevenueCat supports this with other payment providers)