#Sam_Praveen-payments

1 messages · Page 1 of 1 (latest)

broken drum
#

Hello! what specific error are you getting?

final garden
#

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[]

broken drum
#

Can you share the Customer ID and/or request ID that's resulting in that error?

final garden
#

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?

broken drum
#

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

final garden
#

Is it Possible to Downgrade our Live site API Version to 2019-03-14 so that we don't need to Changes our code???