#Herman-react-native

1 messages ยท Page 1 of 1 (latest)

tawdry valley
fallen rain
#

Hi

#

thank you for your fast feedback

#

so I need to create iban input for myseft?

#

i am asking because i saw iban in stipe elements

tawdry valley
fallen rain
#

to create user bank account in stripe

tawdry valley
#

that example i provided to to accept a payment, you're going to need to make some modifications to create a bank account

fallen rain
#

can you please explain what modification i need to make? if i clearly understand I need send iban to stripe

#

like send user iban to stripe and then get some response.data maybe

#

I'm so sorry because i'm not famiiar with payments systems

tawdry valley
fallen rain
#

my backend didn't accept iban user details

tawdry valley
#

could you elaborate a bit more on why your backend doesn't accept iban user details?

fallen rain
#

my backend accept token back account

#

I need to ask him sorry

#

i need some time

tawdry valley
#

alright, np, we're here to help tomorrow too ๐Ÿ˜„

fallen rain
#

I'm sorry(

fallen rain
#

my backend take tokenbankaccount and user id

#

i think i need to send iban to stipe

#

and then in payload get token bank account maybe

#

but i didn't see any method

rain mesa
#

@fallen rain you just put the IBAN in the account_number field

rain mesa
#

@fallen rain it's a field in the API you just linked

fallen rain
#

I need to call this endpoint to get token bank account id?

#

i i'm sorry but i didn't see account_number property in response object

rain mesa
#

it's not in the response, it's a value you pass to us

fallen rain
rain mesa
#

for example this is the kind of API call you'd make

const bankAccount = await stripe.accounts.createExternalAccount(
  'acct_1IiKNOJ6vsMjLir1',
  {
    external_account: {
        object:"bank_account",
        country:"DE",
        currency:"EUR",
        account_number:"DE89370400440532013000"
    }
  }
);
#

and you get that IBAN from your app

fallen rain
rain mesa
fallen rain
rain mesa
#

no this is backend code on my server

#

I used Node as an example. What do you use for your own backend?

fallen rain
#

oh so it not my work

fallen rain
#

or i get this token by some endpoint of stripe?

#

like - user inputs iban - i send iban to some endpoint of stripe and get token bank account id?

#

and then i send token bank account where i need

rain mesa
#

well in this case you can't pass a BankAccount Token, which is what we were talking about earlier

#

usually you'd collect the bank account details, create a token in your app, and send it to your backend, sounds like that's what your backend is expecting with tokenBankAccountId

#

but as we discussed , right now our React Native library can't create bank account tokens today

#

so instead you need to send the bank account details to your server and submit them directly there instead

#

so you need to work with your colleague on changing your backend to accomodate this workaround

fallen rain
#

so i send to server data - then he makes request to stripe api and create token bank account id, like this?

rain mesa
#

something like that yep

fallen rain
#

oooh thank you for explanation

#

because i see iban input

#

and backend api docs

#

and i don't understang full flow

#

thank you a lot fore explanation

#

i will write to my backend)

#

i'm very sorry guys

#

i'ts my first payment system integration and i i'm nervous

#

and ask silly quiestions

fallen rain
#

i'm sorry, my backend asks how to pass stripe verification on backend?

viral merlin
#

hey @fallen rain are you still around? what do you mean by verification here? My colleague @fickle wigeon is around to help but you'll need to be more precise explaining what you're trying to do.

fallen rain
#

hi))

#

thank you for your reply

#

I need to get token from stripe by saving iban and when i get send to my backend server

#

I think that it is what i'm searching

#

but if I clearly understand it is saving iban for future payments like

#

but my goal is to get bankAccountToken from stripe

#

i'm also searching docs for this

#

but not found what i need

#

@fickle wigeon

karmic crypt
#

@fallen rain Hello! @fickle wigeon had to step away - give me a few minutes to catch up

fallen rain
#

Hi))))

karmic crypt
#

Are you trying to save a bank account to be used as a payment method, or to be used for future payouts?

fallen rain
#

my flow was to get token bank account id

#

and then send this to myt backend

#

but i see that there is no iban input

karmic crypt
#

Yes, but is this a bank account you want to use for payouts (like an external bank account)?

fallen rain
#

and then i get this ----> here currently is no way to create a bank account token client-side with the react native SDK. You'd have to make your own form and then make the request to create it server-side

#

my backend ask for this

karmic crypt
#

So what is the exact question here? The general idea would be that you build this form yourself, send that information to your backend, and then directly create the Bank Account from the server

fallen rain
#

yes) this flow but for stripe js web dev create token and then send it ti out backend

#

and we all think that this also works on react-native too

karmic crypt
#

No, this won't work with reactNative, because currently we don't allow you to make a client-side call to create a Bank Account Token from the react native SDK

fallen rain
#

yes

#

then flow that you say only works in react native

karmic crypt
#

It would also work with our other client libraries, it's just not necessary since you can create the bank account token

fallen rain
#

i think this token important or not?

hushed arch
#

Hello ๐Ÿ‘‹ , stepping in here. What do you mean by it being "important" here?