#anant2712
1 messages · Page 1 of 1 (latest)
Hello
hello
When you change Prices are they different intervals?
Like one monthly and one yearly?
my first price plan: 10$ per day, period: 20-21-july-2022
I want the new price which is 20$ per day needs to be charged from 21st-july-2022. but it is charged immediately when I am changing price plan via API to customer's current subscription
Did you get my point
Note: I am changing price plan id to the same subscription id (subscription purchased by the customer)
Can you share the Subscription that you updated and it charged immediately?
sub_1NVw0LCvMMMb9OAZTgNPDeLg
subscription item id on which I am changing price plan id : si_OIX4YMqLalE98x
Thanks looking
ok
Hmm I don't see that Subscription charging immediately for the update? looks like the next Invoice is on the 21st for $20
ok, let me see in case it hitting any webhook
wait for a min
ok, its hitting subscription updated webhook
Can I know how can I come to know that this is price plan update so that I can handle not creating entry at my end
any unique column in the response?
You would listen for customer.subscription.updated and compare the previous_attributes in the Event to what is actually in the object of the Event
So you should see the previous Price in the previous_attributes
ok, thanks