#pradeep-g_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/1265997175092154408
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the req_xxxx ID of an API request you've tried?
No, you cannot avoid this. An update like this will trigger a new billing period and a related invoice
What is it you're trying to do exactly?
upgrading monthly plan to annual plan
doc syas it will be generated immediatley , if it cannot be avoided i need to retweak existing code algo, just wanted to confirm on discord
OK, so what is unexpected about a new invoice for the new plan in that case?
You need to explain clearly what is unexpected and how you want this to behave. Do you want to upgrade on a specific date? At the end of the current period?
existing code is charging via payment intent for upgrade and since new invoice is generated for monthly to annual and not generated for upgrade of plan within monthly period , user is charged twice, so i need to tweak the algo , based on stripe behaviour
Sorry I don't understand what you mean
np, i got the answer
i am clear
thanks for your help , i appreciate it
basically existing code algorithm is not flexible for monthly to annual , designed poorly without taking advantage of stripe apis out of the box features, just wanted to confirm my understanding of stripe docs wrt upgrade of subscription from monthly to yearly, hope it makes sense to you
But your API call to upgrade did work? We generated a new subscription to reflect the payment for the new plan effective immediately
You haven't described what it is that is unexpected
yes it worked , because of our bad algo it charged user twice for upgrade one via payment intent and another via invoice webhook
OK, so your issue is resolved?
yes resolved