#tonya_api
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/1266212564589740228
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Why are you creating a new subscription when upgrading the plan? Why can't you update the existing subscription and preview the proration amount on existing subscription (https://docs.stripe.com/billing/subscriptions/prorations#preview-proration )?
We were using the preview, but by the time the user clicks to upgrade, the amount is different.
It's only a few cents, but it's not what we promised and we feel weird about it.
Another alternative we were thinking is to allow the users to create their own custom subscription with different quantities of price ids in the portal? But ... we're not sure if we can create a second portal...
Or maybe we can add a timestamp to the upgrade call so the amounts align?
Yes, proration_date can be added to the Update Subscription API to align with subscription_proration_date in preview: https://docs.stripe.com/api/subscriptions/update#update_subscription-proration_date, so that the exact proration amount will be the same for both preview and actual update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Awesome, thank you!