#carlos-sub-upgrade-downgrade

1 messages · Page 1 of 1 (latest)

lament crow
#

Hello 👋

north tiger
#

hello

#

what I have noticed is that whenever a downgrade is created, an invoice with a value of 0 dollars is created

lament crow
#

Is there any way to differentiate an upgrade from a subscription downgrade?
you can compare the current subscription price to the one they're updating their subscription to.

what I have noticed is that whenever a downgrade is created, an invoice with a value of 0 dollars is created
I believe that's probably due to proration behavior
can you give me an example for this?

north tiger
#

look at this case

#

In this test the customer was on a $100 plan.

I upgraded to a $179 plan.

Shouldn't you have charged the difference from one to the other?

safe trellis
#

Hello! I'm taking over. This Invoice appears to not be an example of one with a total of 0, so are you asking about two different things?

north tiger
#

The only events called were these

north tiger
north tiger
# north tiger

Why in that case he just added a new item to the signature? Shouldn't he have charged the difference right away and changed the plan?

safe trellis
#

What happened on this Invoice is the Customer was subscribed to the 179 plan then you moved them to a different 179 plan. They still had remaining time on the original 179 plan, so we account for that with the 179.00 and -100.00 credit, and then we immediately bill them for the upcoming time for the next period, which is the full 179. So it's 179 - 100 + 179 = 258 for both the partial period and the upcoming period.

#

It did charge the difference right away and changed the plan.

north tiger
#

In vdd it didn't charge because the invoice.paid event was not triggered

safe trellis
#

It's attempting to charge the difference, but the payment hasn't gone through yet, which could be for various reasons. Can you give me the Invoice ID so I can take a look?

north tiger
#

I accidentally deleted the client, I'll perform another test

#

I still don't understand this calculation

#

The customer has just purchased a 100 dollar plan, if he now upgrades to a monthly plan, will he pay for two plans?

safe trellis
#

Can you give me the Invoice ID after making that change so I can have a look? I only speak English and it's very hard to tell exactly what's going on from only screenshots.

north tiger
#

Can you understand better now?

safe trellis
#

No. There's a lot of detail missing from the screenshot. Please provide the Invoice ID so I can look on my end at not only the current state of the Invoice but also the history of it.

north tiger
#

Did not create any new invoice

#

Just added two items to subscription

#

I will send the subscription id

#

sub_1KKRzaANR34g5yeQKW6jo0rl

safe trellis
#

Looking, hang on...

#

Okay, I see the switch from one Price to another, and no Invoice has been generated for this change yet, so there aren't really any calculations to see yet. What's your question about this?

north tiger
#

The customer was on a $100 monthly plan.

he upgraded to a $179 monthly plan.

stripe should have charged the difference immediately and upgraded.

but that didn't happen, she took the difference of 79 dollars that was missing to upgrade and added 179 and added it to the signature

#

Now it's saying the next bill will be $258

safe trellis
#

The $258 value is correct. They moved from a $100 plan to a $179 plan. They paid $100, so that leaves $79 that they owe over what they already paid. They'll be billed for that on their next Invoice, which also includes the $179 for next month. $179 + $79 = $258.