#Qualle-PaymentMethods
1 messages · Page 1 of 1 (latest)
does this work also for external accounts, bank accounts and cards?
I'm seeing the additional context.. I'll move those to this thread @fervent ridge
ok thanks
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
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?
Hi, I think there is a bit of confusion here. The customers, https://stripe.com/docs/api/customers, objects with cus_ xxxx are the customers that are making purchases. External Accounts, https://stripe.com/docs/api/external_accounts are the connected account's data that funds get transferred to
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
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
yeah, that is correct: https://stripe.com/docs/api/external_account_bank_accounts/create is for payout and it's defaulted.
but there is no way to swap default methods on external account?
it would be better to just delete it and add new?
Yes, you'd delete and add the new one