#Qualle-PaymentMethods

1 messages · Page 1 of 1 (latest)

storm trench
#

Hi, did you have a specific question related to this?

fervent ridge
#

does this work also for external accounts, bank accounts and cards?

storm trench
#

I'm seeing the additional context.. I'll move those to this thread @fervent ridge

fervent ridge
#

ok thanks

storm trench
#

const customer = await stripe.customers.update(
'cus_MBDGgcm7KjdCrv',
{default_source: <payment_method_id> }
);
does this work also for external accounts, bank accounts and cards?
these are custom connect accounts

fervent ridge
#

whats confusing I guess is, customers have payment methods, but connect accounts have external accoutns

#

if I update a payment method to default, does that reflect onto the connect account? only one default for each?

storm trench
#

So these are not related, what are you trying to achieve?

const customer = await stripe.customers.update(
'cus_MBDGgcm7KjdCrv',
{default_source: <payment_method_id> }
);

Just makes that payment method, this specific customer's default

fervent ridge
#

we have a marketplace where everyone is a vendor who can buy and sell

#

it seems like what you're saying is to "buy" it comes from their payment method

#

and to sell their payout is done through external account

#

because we have a customer record for every user, and a connect account

#

so every user (customer&connect), needs a default payment method, and a default payout method

#

but I didn't see an api to update a default payout method, just the payment method

#

also, external account seem to get a default by default, but payment methods need to be implicitly set

#

but our entire system works right now without all these so I'm just baffled tbh

storm trench
fervent ridge
#

but there is no way to swap default methods on external account?

#

it would be better to just delete it and add new?

storm trench
#

Yes, you'd delete and add the new one