#sskarim-Invoice

1 messages · Page 1 of 1 (latest)

sturdy valve
#

👋 happy to help

#

would you mind sharing the invoice id?

#

in_xxx

last gorge
#

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

sturdy valve
#

ok no worries

last gorge
#

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 **

sturdy valve
#

could you please share a request id? a customer id? a subscription id? anything really so I could take a look?

last gorge
#

cus_ML7MrreiI1oX0K

#

sub_1Ld9LEDXuPWWFhCph2h8BcPb

sturdy valve
#

thanks I will take a look

last gorge
#

thanks

arctic cedar
#

Hi! I'm taking over this thread.

#

Give me a few minutes to catchup.

last gorge
arctic cedar
#

Thanks, yes that would be helpful.

last gorge
#

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 )

arctic cedar
#

Thanks! Give me a few minutes to look into this.

last gorge
#

ok thanks , to make things more simple, how this customer cus_MLthkTkD6q6Uta got 231.93€ in his balance

arctic cedar
#

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?

last gorge
#

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 )

arctic cedar
#

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