#greatestice_subs-pastdue-payment
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/1243588741000335412
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ can you tell me more about what you're referring to when you say "it automatically takes the unpaid amount"? That isn't something I recognize offhand. Do you have examples that you can share?
I have integrated stripe on my site and created Basic and pro plans, I purchased a pro plan, due to some reasons the payment failed and subscription get cancelled automatically, then I added a new card , althought my subscription is cancelled but it still deducted the PRO plan payment
I need more context than that. Can you share the IDs of objects from your flow where you saw this?
Are you able to reproduce this behavior in testmode?
The account was on the Pro plan and payment failed for the renewal.
Then the account was downgraded to the Basic plan and a new card was added.
When the new card was added it took payment for the outstanding invoice for the Pro plan instead of for the new Basic plan.
What is the ID of the Invoice you're referring to? It should start with an in_ prefix.
I cant send the invoice id But,
The issue happens when a user's payment fails for the plan they're on, then if go into the app and downgrade their plan later, and add a new card, then when they submit the change it takes payment for the outstanding invoice for the previous plan.
Instead it should cancel the outstanding invoices and bill for the new plan they've selected.
We need object IDs for the objects you're referring to. These are really nuanced topics. The behavior you're describing could be caused by a number of things
evt_3OxAtaHzZouBF6420QFc2rTa
Here is the event id, it took payment of PRO plan
But the at that time the current subscription was BASIC plan
Which Price represents your pro plan?
price_1IuY0tHzZouBF642w5ON58Cq
I don't see any indication that you updated the Price to something else. That was the only one on the Subscription when the Invoice was created and paid
I want to cancel the pending invoices when upgrading or downgrading
I'm not sure I understand
Can you try to be more specific about what you're trying to do? I don't know what you're asking
Hi ๐
I'm stepping in as my colleague needs to go. I'm having a hard time understanding what it is you are trying to do. Can you summarize your overall goal here?
Okay I was able to find your Subscription record and review what happened.
The issue here is that this Subscription was never canceled. It entered a state of past_due. In this state, the unpaid Invoices are regarded as outstanding debt that Stripe should attempt to collect.
When you add a new payment method to your customer, we re-attempt payment on the oustanding invoices.
If you do not want this behavior, you will need to Void the outstanding invoices https://docs.stripe.com/api/invoices/void and cancel the subscription https://docs.stripe.com/api/subscriptions/cance yourself