#AlexElie
1 messages · Page 1 of 1 (latest)
That's part of the flow
You can unsubscribe from those events if you don't want them
What exactly is the problem you're having with these?
no i need them. I need to log when a customer update his plan but also when he creates a subscription
so i guess ill only use update for both
Using created makes sense at the beginning, but up to you to determine what the best fit is for your needs
when i receive the updated hook is there any way i can know the customer was on which plan before updating?
What do you mean?
for these events around creation, or later changes?
(I wouldn't expect any plan/price changes at creation time via Checkout)
For later changes, eg via the Customer Portal, you can inspect the previous_attributes on the event
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
later, lets say the user update his subscription. when i receive the hook, the subscription object tells me which plan the customer is currently on. Any way to know which plna and was on before updating...
Ok nice ill check the previous attribute!
Yes previous_attribute is a very nice way to check things like previous plan