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.

Genetare token of Bank account using createTokenWithBankAccount method without routingnumber parameter

See original GitHub issue

To create a token with Bank account we have createTokenWithBankAccount method. It has routingNumber as an optional parameter as describe in a document and I use that library to use in Singapore. How to create token without giving routing number ??

let params = {
                // mandatory
                accountNumber: '000123456',
                countryCode: 'sg',
                currency: 'sgd',
                accountHolderName: 'Test user'
            };
await stripe.createTokenWithBankAccount(params)
                .then((data) => {
                    this.addToken(data.tokenId, data.bankAccount.last4);
                }).catch((error) => {
                    this.setState({
                        isLoaderVisible: false
                    });
                    showSnackBar(error.message);
                });
});

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
harpalsinh-jadejacommented, Dec 20, 2017

In stripe/stripe’s document to create bank account token routing number is given as an optional, but we can’t leave it as optional.

To solve that issue I research some bank related sites and find one solution. The Routing number is a 7 digit number which is a combination of Bank code and Branch code.

Bank code is 4 digit number and Branch code is 3 digit number. By combine that two respected number we can make routing number.

Parameter to pass in createTokenWithBankAccount method

let params = {
                accountNumber: this.state.accountNo,
                countryCode: 'sg',
                currency: 'sgd',
                routingNumber: `${this.state.bankCode}${this.state.branchCode}`
            };

I design Payment screen as under

simulator screen shot 20-dec-2017 2 59 56 pm

0reactions
isnifercommented, Dec 20, 2017

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a bank account token - Stripe API reference
This token can be used with any API method in place of a bank account . ... For US bank accounts, this is...
Read more >
Create token for bank account information Stripe - ios
I did talk with a representative from Stripe. ... createToken(withBankAccount: bankAccount) { (token, error) in if let error = error ...
Read more >
.createTokenWithBankAccount(params) -> Promise · tipsi-stripe
Creates token based on external (bank) params. params — An object with the following keys: Key, Type, Description. accountNumber (Required), String ...
Read more >
stripe_create_account_token: Create a Bank Account Token
Create a bank account token to schedule a transfer to a recipient. ... A data frame with the new bank account token info...
Read more >
Send Money - Add a funding source | Dwolla API Documentation
Bank Addition and Verification methods #. Within Dwolla, the sending party must always verify their bank account in order to be eligible to...
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