#jackyfreeds_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/1420950800972386375
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi @shy solar This sounds like a flat rate pricing model to me https://docs.stripe.com/products-prices/pricing-models#flat-rate
Thanks @eternal gull, but is there more clear guidance on how to associate it to features on my platform?
Is the better practice to automate which features come with the package or to turn on the features with feature flags depending on the package that was purchased? I assume the former, but looking for some guidance here
Sure, you can use the entitlements https://docs.stripe.com/billing/entitlements to map the features of your internal service
Oh very interesting, I’ll check this out now
I’m also interested in providing a billing summary page in each tenant of my platform where they can view their billing history as well as upgrade or downgrade their billing, so you have docs in that?
FYI I am building on lovable with cursor
How does Stripe know which features on my platform map to the features I've created in Stripe for entitlements?
You can use this API (https://docs.stripe.com/billing/entitlements?dashboard-or-api=api#list-active-entitlements) to retrieve the list of active entitlmeents for a customer and map them to your internal service
About the best pratice, you can use feature flag or whatever works best for your system
For the billing summary page, https://docs.stripe.com/api/invoices/list?api-version=2024-11-20.acacia#list_invoices-subscription you can pass the subscription ID to the list all invoices API to return invoices for that particular subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.