#ibgoldbergs
1 messages · Page 1 of 1 (latest)
The dashboard uses our Sources API even if it does call them payment methods in the UI
To use a PaymentMethod object you will want to use the API to create it directly
so no matter what if i add a card from the dashboard its a source
seems like a really odd way to handle it
Especially because sources is deprecated
Is this causing you issues with a part of your integration that we can help with? Or letting us know it was unexpected/confusing?
(which, I agree, it is!)
well i'm building an API that can display data in our UI and trying to display the payment method attached to the customer on the subscription.. however, it doesnt seem like I can rely on payment method because it could be a source
is there a single call i can make to get details about the source/payment method used to charge a subscription? or do i have to look at both source and payment method?
Can you share an example subscription that look unexpected to you?
yeah, there is a card i added from the dashboard, and it says default payment method is null
That's the default payment method on the subscription itself, which can be different than the invoice default on the customer
Are you trying to set the default on the subscription explicitly?
Sure but you're looking at dashboard flows, I mean are you setting the subscription default_payment_method in your own code
We are yeah, but this one I simulated on dashboard.