#Emenike-token-customer
1 messages · Page 1 of 1 (latest)
const stripe = require('stripe')('sk_test_51KMh93IOFSPYIR0z9HysFAp3xfLOvG3eBgBvpSSbpjgoE7nsIbr8CN99xc1En2t3apsF79ouF0vUINEZRK5wbjQ30037R0JcMN');
const token = await stripe.tokens.create({
card: {
number: '4242424242424242',
exp_month: 2,
exp_year: 2023,
cvc: '314',
},
});
Okay so yeah in this case you can't
You would attach the token to a customer afterwards
but instead of all that card information can I pass in a customer
However, you really should use PaymentMethods instead
Tokens are for our legacy integration
i would like to do customer payouts and I need a token in order to set up an external account
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?
yes I would like to pay customers in the future. Yes with an attached debit card
What type of Connected Accounts are you using?
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.
is there a way to do a direct payout to their bank account
I recommend reviewing our docs on Express accounts: https://stripe.com/docs/connect/express-accounts
The funds will always move from your Platform account --> Express account --> their external account (their bank account)
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
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
ok clear thank you for asking