#やまだ えしら
1 messages · Page 1 of 1 (latest)
Yes it's a bit of legacy here. So a customer can have either payment methods or sources or both of them. The order will be invoice_settings.default_payment_method > default_source
I see.
This time I want to get the last4 when the card is registered. In that case, I need to use Customer -> default_sourcce, right? (because invoice_settings.default_payment_method is nullable)
Oh, I understand.
It appears that cards added from the customer portal are registered as PaymentMethod and cards added from the dashboard are registered as Source.
Then, the current situation is a mixture of Source and PaymentMethod. In such a case, how can we properly get the default card?
I would recommend checking both of them in order, Payment Method, the Source