#sskarim-Invoice
1 messages · Page 1 of 1 (latest)
wiat plz i'll create one, because i tested many time, and whenever i void in unpaid invoice it add the amount to customer balance
ok no worries
my bad, it's not voiding invoice that add credit to the customer balance, it's subscribing the customer to old plan , like user is subscribed to plan A (100$/year) , he upgrade to plan B (200$/year) but he don't complete payment , so subscribing it to plan b again add credit to him
to plan A again **
could you please share a request id? a customer id? a subscription id? anything really so I could take a look?
thanks I will take a look
thanks
this customer is subscribed to many subs, i'll create a new one and try to reproduce the behavoir
Thanks, yes that would be helpful.
new customer id = cus_MLthkTkD6q6Uta
with subs id = sub_1LdBtrDXuPWWFhCpTUij0b4O
for now the customer has an active subs
now i upgrade his subs
but don't complete it
so subscription status is Past due
in_1LdBwUDXuPWWFhCpLnhEhTHv open invoice
i void it and subscribe it again to old plan
now the customer has this amount in his balance
and he shoudn't because he didn't pay it in the first place ( here you can notice that i set invoice to Uncollectible , but it's the same when i void invoice )
Thanks! Give me a few minutes to look into this.
ok thanks , to make things more simple, how this customer cus_MLthkTkD6q6Uta got 231.93€ in his balance
Yep understood. Sorry Discord is busy, will have a look now.
To summarize what I see:
- first invoice (in_1LdBtrDXuPWWFhCpFtUzZzxz). the customer was charged 299€ for one year
- then you upgrade the subscription (req_CFs2rVtqRXoSxK) which create a new invoice (in_1LdBwUDXuPWWFhCpLnhEhTHv). This is for +499€ (new plan) 299€ (unused time on previous plan). And you mark this invoice as uncollectible
- Then you downgrade the subscription (req_t2q7s8cCAKgvXE), which create a new invoice (in_1LdBzLDXuPWWFhCpvnxzsaTH). And this one with the proration the total is negative (-€231)
My first question is: why are you doing upgrade -> void -> downgrade?
If it's because the payment failed, then you could use this instead: https://stripe.com/docs/billing/subscriptions/pending-updates
To only do the upgrade if the payment succeeds.
i can't use pending updates, since it's not workng for spa debit , bank transfert , and it's the main reason we are migrating to payment element ( client want our cutomer to be able to apy wit bank trasfert )
OK. Then I'm not sure how prorations are supposed to work when voiding an invoice. I would recommend to ask Stripe support directly, they will have more time to investigate this issue: https://support.stripe.com/contact