#beneordio_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ 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/1263066770688708709
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
so basically it's the difference between https://docs.stripe.com/api/subscriptions/object#subscription_object-trial_end and https://docs.stripe.com/api/subscriptions/object#subscription_object-start_date
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey, thanks for helping out! The subscription object start date would then be the trial start, is that correct?
How would the calculation account for multiple trial periods e.g., 7 days trial -> subscription ends and there is no subscription for, say 2 weeks -> another custom trial period of 3 days -> after the 3 days start of a regular subscription
I'm not sure I understand
A customer might have multiple different trials
First trial 7 days. Then no subscription for a month. Afterwards another 3 days of trial.
Total trial days for that customer would therefore be 10 days.
Is there a way we can get that information from stripe?
you would have to list all subscriptions for a customer
and then for each you would calculate based on the difference between trial_end and start_date
Okay and that would consider multiple different trial durations and add them all up?
if they are on different subscriptions then yes
Is there a way to implement such calculation as a custom attribute (column) in the customers tab (https://dashboard.stripe.com/customers)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
oh maybe it's best to use https://docs.stripe.com/api/subscriptions/object#subscription_object-trial_start instead of start_date
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
unfortunately you can't customize the Stripe Dashboard
with your own columns