#tiaringhio
1 messages · Page 1 of 1 (latest)
Hi there!
Pasting your other message in this thread:
Checking here i see that i could serialize then deserialize the previous attributes as a dictionary (missed the fact that i pass a subscription object to my method and therefore don't have that data anymore), that could solve my issue
So when you receive a webhook event, you don't see data.previous_attributes in the payload when using .NET?
https://stripe.com/docs/api/events/object#event_object-data-previous_attributes
If i could i would check if the subscription has been requested to be canceled
When the subscription is cancelled, you could update the subscription with somemetadata.
i do, i noticed the previous_attributes object is not part of the subscription object and when i receive a WebHook the first thing i do is serialize the Data.Object part of it, effectively discarding the data i was looking for.
Apologize for what i now realize was a stupid question, maybe i need a coffee😂
No worries 🙂 Let me know if you have any other questions!
it works as expected, thank you!
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!