#greatestice_subs-pastdue-payment

1 messages ยท Page 1 of 1 (latest)

kindred topazBOT
#

๐Ÿ‘‹ 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.

scenic wolf
#

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?

kindred pike
#

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

kindred topazBOT
scenic wolf
#

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?

kindred pike
#

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.

scenic wolf
#

What is the ID of the Invoice you're referring to? It should start with an in_ prefix.

kindred pike
#

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.

bleak pilot
#

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

kindred pike
#

evt_3OxAtaHzZouBF6420QFc2rTa
Here is the event id, it took payment of PRO plan
But the at that time the current subscription was BASIC plan

bleak pilot
#

Which Price represents your pro plan?

kindred pike
#

price_1IuY0tHzZouBF642w5ON58Cq

bleak pilot
#

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

kindred pike
#

I want to cancel the pending invoices when upgrading or downgrading

bleak pilot
#

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

kindred topazBOT
rare girder
#

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.