#adityalystlocdeveloper_33428
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.
- adityalystlocdeveloper_33428, 3 hours ago, 38 messages
- adityalystlocdeveloper_33428, 3 days ago, 7 messages
- adityalystlocdeveloper_33428, 3 days ago, 23 messages
- adityalystlocdeveloper_33428, 4 days ago, 5 messages
- adityalystlocdeveloper_33428, 4 days ago, 19 messages
- adityalystlocdeveloper_33428, 6 days ago, 37 messages
and 1 more
I invite you to do a complete and concrete test using test clock :
https://stripe.com/docs/billing/testing/test-clocks
ok please invite
Sorry I don't understand your latest reply
i already tested with test clock
Yes and what was the behavior ?
basiclly whatever the records i did with previous price metered usage that lost deuto update
i want that records to forward in new price
Let me check if you can invoice immediatly the current usage before dowing the upgrade/downgrade
ok
In your test, if you retreive the incoming invoice of the Subscription, are you seeing the current usage:
https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#retrieve-current-usage
no
that means there is no records
You need to make sure that you have usage records in your test
I am using two prices to make one subscription firstly flat 99 at starting and at the end of month according to usage
its their metered charges are their in thi invoice
but their is also one flat price of upcoming month
I see, and what is the issue with that exactly?
issue is that if customer update the subscription then what to do with previous metered usages
what would you like to do with it? The default as far as I know is that the previous usage is retained : https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#metered-billing .
but how charge will calculated if previous metered unit charge is 0.01 and new 0.02 then?
suppose user did previous 5000 hits till 1-15 and updated 15-30 how bill will be calculated
I'm not sure to be honest, I think what happens is we re-calculate it using the new Price.
i.e. we do the multiplication of the existing reported usage quantity, with the new Price on the SubscriptionItem. You can test in test mode to confirm what happens.
using the API is easier/more applicable here