#ibgoldbergs

1 messages · Page 1 of 1 (latest)

rigid sundialBOT
flat summit
#

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

limpid egret
#

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

neon mural
#

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!)

limpid egret
#

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?

neon mural
#

Can you share an example subscription that look unexpected to you?

limpid egret
#

yeah, there is a card i added from the dashboard, and it says default payment method is null

neon mural
#

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?

limpid egret
#

we create the subscription to use the default payment method

neon mural
#

Sure but you're looking at dashboard flows, I mean are you setting the subscription default_payment_method in your own code

limpid egret
#

We are yeah, but this one I simulated on dashboard.