#windlepoons-customer
1 messages · Page 1 of 1 (latest)
@gentle imp what are you really trying to do? Source objects are deprecated in most cases and no one should be using them in most cases. What are you really trying to answer
We have legacy customers that have them still. AFAIK there is no automated way to move them to payment methods. I'm replacing calls to Stripe to use our cache, some of them expand sources for legacy users. If they have a payment method, I can avoid loading sources, but if they have sources, it'd be nice to fetch just the sources to add them back instead of fetching the customer record again.
(add them back == fetch just them and merge them into the customer object we fetched from cache)
what kind of type of Source? There are many. Is this only cards?
Okay it's important because there are 20+ types of Source objects (card, sepa_debit, ach_credit_transfer, etc.)
All card Sources src_123 100% work as PaymentMethods via the API already. If you use https://stripe.com/docs/api/payment_methods/list for that Customer you would see all the src_123 and you should never use the old approach
Ah, so payment methods will list all sources?
Okey, thanks!
If there's a default_source, that id can be found in payment methods?
yes