#boliboy
1 messages · Page 1 of 1 (latest)
hello! when you try, you can take a look at your Dashboard events page to see what events are generated
yes but thats not enough
why not? can you elaborate a bit more?
it seems you have to inspect same values of the event object to find out if it was a renew plan
what event was that in your opinion?
customer.subscription.updated or customer.subscription.created
can you share the customer id for which you've renewed the plan?
im using the test mode
that's fine
customer is cus_NOz5fx1OnLyKJt
i was able to capture the cancel plan event
but know how do I check for the renew one?
im doing it in python
which event is the one for the renew plan? can you share the specific event id, there's quite a number there so it's going to take a while for me to look through each one
evt_1Ml333CGP37FKmPpDVZ3CzhX
you need to compare the previous attributes and current attributes. e.g. previous attributes cancel_at_period_end:true, and current cancel_at_period_end:false