#Sam_Praveen-payments
1 messages · Page 1 of 1 (latest)
This kind of error even I already have one card in that account:
"message": "Trying to get property 'data' of non-object",
"exception": "ErrorException",
I am trying to fetch the data from Customer Object like Customer->Sources->data[]
Can you share the Customer ID and/or request ID that's resulting in that error?
On my other Stripe Account it is showing Default API Version = 2019-03-14 and in my other Stripe account that we are using on Live site is showing API default version = 2020-08-27 So, is there any Major change between these two versions for Customer Object?
Yes, that's a HUGE jump between API versions and you need to be looking at https://stripe.com/docs/upgrades to see the full list of backwards incompatible changes that have occured
In particular, I believe you're affected by this change:
"The sources property on Customers is no longer included by default. You can expand the list but for performance reasons we recommended against doing so unless needed."
So you need to change your code to explicitly expand 'sources' on the Customer object
Is it Possible to Downgrade our Live site API Version to 2019-03-14 so that we don't need to Changes our code???