#nicholasstephan-paymentmethod-source

1 messages ยท Page 1 of 1 (latest)

steep scarab
#

default_source is legacy! It's for integrations that used the API years ago before we added PaymentMethod

#

And the problem is that the Dashboard uses the old API (to not break existing integrations)

#

so you should explicitly set default_payment_method in your code after that step to be aligned with the rest of your code

ivory hawk
#

Can banks be added as payment methods though? I find I can only attach ACH as sources

#

The API has stripe.customers.createSource for banks

#

*docs

steep scarab
#

correct, ACH Debit is still with the old API today

#

we're working on porting to PaymentMethod, hopefully shipping next year (there's a beta so you could ask our support team for access)

ivory hawk
#

Ok just confirming. Cant wait till its not split between the two ๐Ÿ˜›

Cause yeah when im sending tokens back to the server, only card supports the token

steep scarab
#

yeah ๐Ÿ˜ฆ

flat bane
#

Trouble is our tech support will somtimes try to add a credit card manually through the stripe dashboard if the customer is having issues. Is there some way for them set the default_payment_method?

steep scarab
#

not in the Dashboard, but you can listen to events/webhooks and then write code to mark those as the default

flat bane
#

Ah. Using a hook is a good idea.

#

Thanks!