#arya_
1 messages · Page 1 of 1 (latest)
Hi, if you look at previous_attributes here probably you can distinguish? https://stripe.com/docs/api/events/object#event_object-data-previous_attributes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm console.log("prev attributes", data.previous_attributes)
This gives me undefined
I also console logged the data variable and could not find a previous_attributes field inside it
Could you share one example event id? evt_xxx
evt_1NEMQ2IJY9GdUtEDLhODZtiN
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You can see it has
"previous_attributes": {
"cancel_at": 1717288680,
"cancel_at_period_end": true,
"canceled_at": 1688863080,
"cancellation_details": {
"reason": "cancellation_requested"
}
}
Aah i figured:
I was doing event.data.object.previous_attributes and not event.data.previous_attributes