#davi-list-sources

1 messages · Page 1 of 1 (latest)

compact fjord
#

@glass niche there's no reason to list Sources. Sources are legacy and only make sense when already attached to a Customer

#

Are you using the Source API with src_123?

glass niche
#

You mean the Source id?

compact fjord
#

yes

glass niche
#

yes.

compact fjord
#

are you using src_12345, or card_123456, or pm_12345

glass niche
#

src_

#

Say I created a Source using Stripe Card Element, stored the src_ id in my DB for charging later, and now because of a bad migration that got corrupted. Did I lose the ability to charge that source and need to re-collect the card?

compact fjord
#

yes

#

also you should never be doing that ~ever

glass niche
#

👀

compact fjord
#

a Source is supposed to be created and immediately used, either for a payment or attached to a Customer

#

it's not good to keep the Source id somewhere and charge it later, it has some bad side-effects

#

but unfortunately there's no API to get those old ids back

glass niche
#

Thank you for the information.