#vipera74
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- vipera74, 8 hours ago, 9 messages
- vipera74, 9 hours ago, 32 messages
- viper-disableprorations-customerportal, 12 hours ago, 27 messages
- viper-invoice-events, 13 hours ago, 21 messages
- vipera74, 2 days ago, 14 messages
- vipera74, 2 days ago, 7 messages
and 3 more
hi there!
Hi!
once you have the Invoice object, you can check each invividual invoice item to see if they are prorations or not: https://stripe.com/docs/api/invoices/object#invoice_object-lines-data-proration
Yep! But does it provide proportions as well?
Or do I have to calculated that myself using the billing cycle? If so, is some documentation regarding how the proportion is calculated by Stripe?
what do you mean by "it provide proportions"?
Well, the proration is proportioned based on how much time has elapsed since the start of the current plan, right?
If the user changes plans at half of the billing cycle, they will be billed the difference between the prices of the plans + 50% of the current plan, as far as I understand.
My interest is in finding out what that percentage is in the events, since I need to adjust user credits based on that as well
I don't know if it's clear, lmk
like I saida: check the invoice items of the invoice, it contains all the information you need (it's its a proration or not, the exact amount, etc.)
Ok, so it doesn't provide the proportion specifically, I would have to calculate it using the amount billed and make the calculation with the actual price. Thanks!
correct
Thank you very much for your precious time and help! ❤️