#Syafiq Idrus
1 messages · Page 1 of 1 (latest)
Hi there, is the new price of different billing cycle?
Some of them yes
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment OK, then this is by design. Immediate payment is required when billing period changes
I see. Well in that case, when a user changes the subscription item to a new price, is there a way to check whether the new price is higher or lower than the previous amount? I am aware that this can be done in the customer.subscription.updated event but i was wondering if the same can happen for the invoice.paid event
Do you mean you want to to retrieve the price object and check its amount before updating the subscription?
Not really, what id like to do is check on the invoice.paid event if the new price is higher or lower than the previous ones
The invoice.paid event is an event about the invoice, not subscription.
I'd suggest you to listen to customer.subscription.updated
That is the event that im currently listening to, but i was hoping i could achieve the same thing on a different event