#Sadeed
1 messages · Page 1 of 1 (latest)
Have you tried the List Customer Payment Methods?
not yet, we were using only using the sources api before and just randomly came across this issue
Sure let's try it to see if you can see other cards over there
Simply that a Customer can have both Source and PaymentMethods. They are 2 different type of information
You would want to List both to have the full list
okay
One more thing, can i retrieve the card id from a payment method or is that a different thing
@merry atlas
Card Id is a different thing
Yep, set it as Customer's invoice_settings.default_payment_method
how would I unset a default source ?
since I have to handle both sources and payment methods now. I cant just set one as a default and not consider if the other type was also set as default previously
so i need to set one field and unset the other
@merry atlas
There are 2 fields default_payment_method and default_source. Default Payment Method will take precedence
yes that is what i am doing, but when I try to set a source as default it doesn't work since the default_payment_method field is already set.
What i want is a way to unset default_payment_method while i set default_source and vice versa