#alphako5_api

1 messages Β· Page 1 of 1 (latest)

viral havenBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295948704087408652

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

soft flax
#

async addBankDetails(customerId: string, payloadBankInfo: any) {
try {
const token = await this.stripe.tokens.create({
bank_account: {
country: 'US',
currency: 'usd',
account_holder_name: payloadBankInfo.account_holder_name,
account_holder_type: 'individual',
routing_number: payloadBankInfo.routing_number,
account_number: payloadBankInfo.account_number,
},
});
const bankAccount = await this.stripe.customers.createSource(customerId, {
source: token.id,
});
return { ...token, bankAccount };
////console.log({ token })
} catch (error) {
throw error;
}
}

async accountverifySource(customerId: string, accountId: string) {
try {

  console.log('asdjqqwjwqndkqwndjqwkdnqjwdnkq',customerId, accountId);
  const bankAccount = await this.stripe.customers.verifySource(
    customerId, //cus_MBQsiNJbMGzmua
    accountId, //ba_1LZTN2KzlN9m3kYmJHAwgMuX
    { amounts: [32, 45] }
  );
  console.log({ bankAccount })
  return bankAccount;
} catch (error) {
  ////console.log(error);
  throw error;
}

}

#

addBankDetails OK
accountverifySource failed

rare rune
soft flax
#

req_TCmbgOXtpCKVcl

#

i don't get this error on test mode but on pord mode

rare rune
#

The amounts provided in req_TCmbgOXtpCKVcl are not correct. In the code snippet you provided, ba_1LZTN2KzlN9m3kYmJHAwgMuX is a test account and so the amounts [32, 45] worked in test mode. However, ba_1QANYaRsPqLJcOAohCShnGsv is a livemode account and needs the actual values.

soft flax
#

what do you mean "acutal values"? how do i know what is the actual value for bank account?

eternal sparrow
#

You should ask your customer to check their bank account and get the micro-deposit amount that Stripe deposits into it.

viral havenBOT
soft flax
#

Ah, now I understand. Thank you.

So, users must check and enter the amounts received from the bank in order for the verification to be completed, right?

eternal sparrow
#

Yes you are right, so that you can use that amounts to verify their bank account

soft flax
#

do you guys have
Instant account verification (IAV) via login credentials?

versed ermine
#

πŸ‘‹ taking over here and catching up

soft flax
#

can you kindly give an adivse what is the best way to verify bank account?

versed ermine
#

To clarify, are you using ACH Direct Debit?

#

There are Instant Verification with Financial Account, and microdeposit verification

soft flax
#

What I want to implement is for a taxi app where drivers will use it to withdraw money.

#

so drivers need to add their bank accounts

#

is microdeposit verification instant way?

#

the link shows it takes 1-2 bussiness day stipe send to bank account

versed ermine
#

Let's take a step back and think about your integration here. Are you a Taxi app, has many tax drivers and there will be passengers paying you, and a portion to the drivers?

soft flax
#

Yes, the payments made by passengers go into the Stripe account, and a certain amount for the drivers is withdrawn from the Stripe account.

versed ermine
#

Okie, and which component will you use? a mobile SDK or a web page?

soft flax
#

react native mobile