#frallain
1 messages · Page 1 of 1 (latest)
Alright, there is a bug in the JSON returned in several of the customer.subscription.updated events I received (e.g. https://dashboard.stripe.com/events/evt_1NaeFZI9qXomtXqS5vfLyMyD):
The previous_attributes have an empty subscription item.
Thanks! Give me a few minutes to look into this.
Hey! Taking over for my colleague. Let me catch up.
It seems not yet fixed, but as my colleagues told you before, you should adapt your code to handle that. You can keep track of Subscription states and previous attributes in your integration/data base, if the state tracking is a must for you.
the problem is that I don't have any ways to get the previous state since the DB has been updated
- Is this a bug impacting all versions of the webhook API?
- And also, is the subscription item empty only when there has been no change on it?
the problem is that I don't have any ways to get the previous state since the DB has been updated
You can keep tracking of multiple version of a subscription the database, like versioning the objects
@ornate frost yes?
@ornate frost did you have a follow up question?
overall I had a quick look at the event you shared, it seems quite unusual, so definitely something you should write to https://support.stripe.com/?contact=true for so that can escalate it to the relevant team and provide any updates