#krishna-methods
1 messages · Page 1 of 1 (latest)
"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,
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.
Oh okay, any way to make a payment method (either card or ach) default for a customer?
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
okay, I suppose I will just use the metadata of customer and update the payment method there