#xythantiops-customer-sources
1 messages · Page 1 of 1 (latest)
Hey @bronze abyss the sources property on Customer (and others) were removed in https://stripe.com/docs/upgrades#2020-08-27
Ok
xythantiops-customer-sources
What endpoint or method do you recommend for retrieving sources or whatever the replacement for them are?
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.
that's what the docs I linked you to explicitly say. Does that make sense? Like what are you really trying to do? It's hard to say without a clear understanding of what your goal is. "sources" were deprecated back in 2018, so while it still works, most newer integrations (from the past 4+ years) would never need this
Yes, we are working on replacing Stripe code written pre-2018 that had used sources to verify that a customer had payment information. I think we will either use default source from GET Customers or or I see that there is a newer GET PaymentMethod endpoint. Or we may we reconsider how this code is operating
using the List PaymentMethods API would definitely be more future proof
but again if all you want is the sources property like you had before, this is still supported. It's the text I quoted above. It's not returned by default but you can ask for it with the Expand feature. See https://stripe.com/docs/expand#includable-properties