#Emenike-token-customer

1 messages · Page 1 of 1 (latest)

olive mist
#

Hi there! How are you tokenizing?

proven bloom
#

const stripe = require('stripe')('sk_test_51KMh93IOFSPYIR0z9HysFAp3xfLOvG3eBgBvpSSbpjgoE7nsIbr8CN99xc1En2t3apsF79ouF0vUINEZRK5wbjQ30037R0JcMN');

const token = await stripe.tokens.create({
card: {
number: '4242424242424242',
exp_month: 2,
exp_year: 2023,
cvc: '314',
},
});

olive mist
#

Okay so yeah in this case you can't

#

You would attach the token to a customer afterwards

proven bloom
#

but instead of all that card information can I pass in a customer

olive mist
#

However, you really should use PaymentMethods instead

#

Tokens are for our legacy integration

proven bloom
#

i would like to do customer payouts and I need a token in order to set up an external account

olive mist
#

Do you mean you want to use Connect?

#

"Customer Payouts" isn't really a thing. You want to pay out your Connected Accounts with an attached debit card?

proven bloom
#

yes I would like to pay customers in the future. Yes with an attached debit card

olive mist
#

What type of Connected Accounts are you using?

proven bloom
#

express

#

I take in the card elements via elements.getElement(CardElement)

olive mist
#

Okay so with Express you won't control the exteranl accounts of your Connected Accounts. Your Connected Account users will add it themselves via Express Onboarding.

proven bloom
#

is there a way to do a direct payout to their bank account

olive mist
#

The funds will always move from your Platform account --> Express account --> their external account (their bank account)

proven bloom
#

yes I am clear on that thank you, but I wanted to make the process relatively quick and sent it from my stripe account to their bank account

#

i was looking towards adding their bank inforamtion totheir stripe express account

#

and then do a payout

olive mist
#

If you want to control their external account then you need to use Custom Accounts

#

What you are describing is just not how Express works

proven bloom
#

ok clear thank you for asking