#baloshi69
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.
subscription renewal is also a update event for subscription. maybe you want to tell me what kind of subscription update you are interested in?
Hey
So i am triggering a Workflow ( Funtion) in my app.
When user upgrade its subscription, for the event customer.subscription.update , and i belive the same event will also be trigger if the monthly requiring happen for that user.
the jason body i revieve form the Stripe webhook . i want to distingues the event.
weather it was a upgradation/downgradation
or
Just a monthly requrring happen.
The below event get trigger for both an Upgradation/downgradation and also for a requring happen right.
customer.subscription.updated
so how i distingues fror body of webhook that is was a upgradation/downgradation or just a requrring which updated the subscription.
Ok, then you can check the previous_attributes and see if it contains items,
if it does, then it means there's a price change triggered by upgrade or downgrade
okey so on monthly requrring the previous attribute wont have any items right
No
thanks