#jeffvosssm-card
1 messages · Page 1 of 1 (latest)
heya @west turtle , you won't be able to retrieve the full card number from Stripe Elements and a Stripe Token/PaymentMethod. This is to ensure that no sensitive card data touches your server, and allows your integration to operate in a PCI-compliant way.
It sounds like you're creating the PaymentMethod on your platform account and you want to clone the PaymentMethod to your connected account? If yes, you can take a look at this guide : https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
if this works i'm going to have an out of body experience
one moment
I was trying to use
const bankAccount = await stripe.accounts.createExternalAccount(
'acct_1GndK7FAWKEWQzfq',
{
external_account: 'btok_1KCHrGFAWKEWQzfq9qEZSSdo',
}
);
when you say your connected account
hmm
my connected account is still showing as "restricted"
Add a bank account or debit card to enable payouts.
what's the result of that request?
not sure I'll have to log
the problem with createExternalAccount is I don't have access to the card number
it seems cloning makes much more sense on server side
this is the final step to my marketplace onboarding flow
its possible I might not be attaching the payment method onto a customer
I created it, I see customer_id was null in the payment method
nope... still seeing Add a bank account or debit card to enable payouts. after cloning to correct account id
any help greatly appreciated
can you share the request id for this
const bankAccount = await stripe.accounts.createExternalAccount(
'acct_1GndK7FAWKEWQzfq',
{
external_account: 'btok_1KCHrGFAWKEWQzfq9qEZSSdo',
}
);
i'll take a look at why this request didn't work first
i can't tell you what's wrong till i take a look at the request id
in general, yes, you can use a token and attach it to a connected account. You can think of tokens as a reference to the original payment method data.
ok so obviously No such token: 'btok_1KCHrGFAWKEWQzfq9qEZSSdo
I can pass the paymentMethod to external_account ?
payment method id
sorry I've been working on this for 16 hours straight
no idea what to pass to createExternalAccount
just need to add a payment method to the connected accounts
api docs say card number is required, so confusing
hmm ... passing tok_visa_debit1
worked
obv its a test external account
right so these are just a pointer to the token
I figured it out
thank you @deep burrow
you're welcome, if you want to test some specific scenarios, you can take a look at this page too : https://stripe.com/docs/connect/testing