question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue while creating token with bank account with IBAN.

See original GitHub issue

When creating a token with a bank account like so:

const tokenParams = {
   accountNumber: this.state.ibanInput,
   countryCode: 'es',
   currency: 'eur',
   accountHolderName: this.state.bankOwnerName,
   accountHolderType: this.state.type
};

stripe.createTokenWithBankAccount(tokenParams)
.then(token => console.log(token))
.catch(err => console.log('error while creating token from bank account:', err));

I see the following error:

Error: You cannot use a live bank account number when making transfers or debits in test mode

The app is for Spain so for accountNumber I am providing an IBAN (maybe this is the issue?). But the Stripe docs do say that you can do this in Spain. I was looking into #208.

I am not doing transfers or debits, just creating a token to connect the bank account to a stripe account (using Stripe-Connect here). Where can I find a “test” bank account or where can I enable creating tokens with real bank accounts?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wmoneckecommented, Sep 8, 2018

Yes I did, I was missing out on the countryCode: 'de', // required field.

Thanks!!

1reaction
payndcommented, Dec 25, 2017

@wmonecke Can you try one of this test numbers (choose IBAN options from dropdown)? Looks like in test mode Stripe assumes that any number that isn’t explicitly one of their test numbers is a potentially real account.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a bank account token - Stripe API reference
Creates a single-use token that represents a bank account's details. This token can be used with any API method in place of a...
Read more >
Bank Integration - developer.token.io
The Token Bank Integration Java SDK simplifies handling the TokenOS ... When a user wants to set up Token with her bank accounts...
Read more >
Auth - API - Plaid
API reference for Auth endpoints and webhooks. Retrieve bank account information to set up electronic funds transfers, such as ACH payments in the...
Read more >
Frequently Asked Questions / Help - CMB Online Banking
We stopped issuing new e-Passes. As long as you have not activated e-Code (soft token) you can use your existing e-Pass. When you...
Read more >
Error codes and messages - Adyen Docs
Payout party/account BIC/Swift invalid. Bank/mt940 - Invalid BIC/Swift in co-relation to countryCode . Exceeded IBAN characters/digits. 163 - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found