#windlepoons-customer

1 messages · Page 1 of 1 (latest)

haughty crystal
#

@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

gentle imp
#

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)

haughty crystal
#

what kind of type of Source? There are many. Is this only cards?

gentle imp
#

Whatever is typically on customer.sources?

#

We've only stored credit cards, yes.

haughty crystal
#

Okay it's important because there are 20+ types of Source objects (card, sepa_debit, ach_credit_transfer, etc.)

gentle imp
#

Ah, so payment methods will list all sources?

#

Okey, thanks!

#

If there's a default_source, that id can be found in payment methods?

haughty crystal
#

yes