#kxshf

1 messages ยท Page 1 of 1 (latest)

ocean jungleBOT
royal marsh
#

๐Ÿ‘‹ happy to help

#

what type of Connect Accounts?

compact gust
#

I would want to use something like this

--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic **' \
--data-urlencode 'external_account%5Bobject%5D=card' \
--data-urlencode 'external_account%5Bnumber%5D=4000056655665556' \
--data-urlencode 'external_account%5Bexp_month%5D=12' \
--data-urlencode 'external_account%5Bexp_year%5D=24'```
#

I'm looking for a way which works with any account type (Standard / Express or Custp,)

royal marsh
#

it's not possible to do it unless it's a Custom Connect Account

compact gust
#

Oh okayy, how can I do it for Custom Connect Account?

royal marsh
compact gust
#

Yea, so I don't want to use Stripe.js in my frontend

royal marsh
#

no need to use Stripe.js

compact gust
#

But it let's you create card tokens for a single-use case

royal marsh
#

if you uncollapse that object

#

you can pass in the number, exp_month etc...

#

let me double check that this works

#

otherwise you would have to create the card token first

compact gust
#

Yea, so when I do that it throws this

    "error": {
        "message": "Requests made on behalf of a connected account must use card tokens from Stripe.js, but card details were directly provided.",
        "param": "external_account",
        "request_log_url": "https://dashboard.stripe.com/acct_1NhoHIIs2uyAQEYz/test/logs/req_LDjOy5ewzoG4s4?t=1695376627",
        "type": "invalid_request_error"
    }
}```
royal marsh
#

ok

compact gust
#

Can we create permanent card tokens?

royal marsh
compact gust
#

Creates a single-use token

royal marsh
#

yes this would be used once to create the external account

#

the external account would then be reusable

compact gust
#

Ohh, I see

The token is one time use, but it can be reused, sure

#

One more thing

#

Why does this API ref emphasize on Credit Card

royal marsh
#

the token won't be reusable

compact gust
#

It could be a debit as well, right?

royal marsh
#

I think that would be fine

compact gust
#

Sure

royal marsh
#

Alternatively, you can collect bank account or debit card details from Custom accounts with your own manual entry form directly within your onboarding flow.

compact gust
#

Thanks a lot man