#Herman-react-native
1 messages ยท Page 1 of 1 (latest)
hello @fallen rain! There isn't an iban component in react native. If you're looking for examples on how to collect the iban in react-native, you can take a look at https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/SepaPaymentScreen.tsx
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
We don't have an iban component in the Stripe react-native-sdk. The react-native-sdk only has the cardfield and cardform components. You would implement a textInput field to collect the iban details like this guide : https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=react-native
i'm sorry for my silly question - I need only follow this https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/SepaPaymentScreen.tsx ?
to create user bank account in stripe
that example i provided to to accept a payment, you're going to need to make some modifications to create a bank account
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
i don't see example like create bank iban account there https://github.com/stripe/stripe-react-native/tree/master/example/src/screens
after collecting the iban details, you would need to pass those details to your backend server to create a bank account : https://stripe.com/docs/api/external_account_bank_accounts/create
my backend didn't accept iban user details
there's a feature request to create a bank account using the react-native-sdk, but looks like it hasn't been merged yet : https://github.com/stripe/stripe-react-native/issues/575
could you elaborate a bit more on why your backend doesn't accept iban user details?
alright, np, we're here to help tomorrow too ๐
I'm sorry(
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
i found only this but i didn't see any iban field required there https://stripe.com/docs/api/external_account_bank_accounts/create
@fallen rain you just put the IBAN in the account_number field
@fallen rain it's a field in the API you just linked
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
it's not in the response, it's a value you pass to us
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
oh sorry
like you have a form in your app to collect an IBAN from the user, pass it to your server, and you pass it to the API in https://stripe.com/docs/api/external_account_bank_accounts/create?lang=node#account_create_bank_account-external_account-account_number
stipe is const stripe = useStripe() ?
no this is backend code on my server
I used Node as an example. What do you use for your own backend?
oh so it not my work
i'm react-native developer and i don't understand one thing - my backend need tokenBankAccountId. it is a value in publishableKey?
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
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
so i send to server data - then he makes request to stripe api and create token bank account id, like this?
something like that yep
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
i'm sorry, my backend asks how to pass stripe verification on backend?
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.
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
first of all when i saw this screen https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/SepaSetupFuturePaymentScreen.tsx
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
@fallen rain Hello! @fickle wigeon had to step away - give me a few minutes to catch up
Hi))))
Are you trying to save a bank account to be used as a payment method, or to be used for future payouts?
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
Yes, but is this a bank account you want to use for payouts (like an external bank account)?
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
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
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
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
It would also work with our other client libraries, it's just not necessary since you can create the bank account token
i think this token important or not?
Hello ๐ , stepping in here. What do you mean by it being "important" here?