#kxshf
1 messages ยท Page 1 of 1 (latest)
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,)
it's not possible to do it unless it's a Custom Connect Account
Oh okayy, how can I do it for Custom Connect Account?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yea, so I don't want to use Stripe.js in my frontend
I was looking at this - https://stripe.com/docs/api/tokens/create_card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
no need to use Stripe.js
But it let's you create card tokens for a single-use case
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
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"
}
}```
ok
Can we create permanent card tokens?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Creates a single-use token
yes this would be used once to create the external account
the external account would then be reusable
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
the token won't be reusable
It could be a debit as well, right?
I think that would be fine
Sure
btw this is all explained here https://stripe.com/docs/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api
Alternatively, you can collect bank account or debit card details from Custom accounts with your own manual entry form directly within your onboarding flow.
Thanks a lot man