#Syafiq Idrus

1 messages · Page 1 of 1 (latest)

fossil bloomBOT
hearty nexus
#

Hi there, is the new price of different billing cycle?

wind creek
#

Some of them yes

hearty nexus
wind creek
#

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

hearty nexus
#

Do you mean you want to to retrieve the price object and check its amount before updating the subscription?

wind creek
#

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

hearty nexus
#

The invoice.paid event is an event about the invoice, not subscription.

I'd suggest you to listen to customer.subscription.updated

wind creek
#

That is the event that im currently listening to, but i was hoping i could achieve the same thing on a different event