#krishna-methods

1 messages · Page 1 of 1 (latest)

quiet path
formal silo
#

"cus_Kj6jQAFv6ES1kw"

#

for this customer
default paymentmethod id is card, but default source id is bank. And on stripe ui, default payment method is card,

quiet path
#

the best way is to manage it in your own database since it's complex otherwise

#

Stripe doesn't usually have a concept of a default payment method, except for Subscriptions. default_source is a legacy field, but unfortunately ACH uses a legacy API right now

#

overall I'd just store in your own database what method you consider to be the default, and use that when calling the API to make payments.

formal silo
#

Oh okay, any way to make a payment method (either card or ach) default for a customer?

quiet path
#

Stripe doesn't usually have a concept of a default payment method

#

so I think it's best if you manage that concept in your own business logic and always explicitly pass the ID of the method you intend to charge

formal silo
#

okay, I suppose I will just use the metadata of customer and update the payment method there