#boliboy

1 messages · Page 1 of 1 (latest)

sharp orioleBOT
spring loom
#

hello! when you try, you can take a look at your Dashboard events page to see what events are generated

grand wing
#

yes but thats not enough

spring loom
#

why not? can you elaborate a bit more?

grand wing
#

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

spring loom
#

can you share the customer id for which you've renewed the plan?

grand wing
#

im using the test mode

spring loom
#

that's fine

grand wing
#

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

spring loom
#

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

grand wing
#

evt_1Ml333CGP37FKmPpDVZ3CzhX

spring loom
#

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