#alphako5_api
1 messages Β· Page 1 of 1 (latest)
π 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.
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
Hi! Can you share the request IDs (req_xxx) for above? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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.
what do you mean "acutal values"? how do i know what is the actual value for bank account?
You should ask your customer to check their bank account and get the micro-deposit amount that Stripe deposits into it.
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?
Yes you are right, so that you can use that amounts to verify their bank account
do you guys have
Instant account verification (IAV) via login credentials?
π taking over here and catching up
can you kindly give an adivse what is the best way to verify bank account?
To clarify, are you using ACH Direct Debit?
There are Instant Verification with Financial Account, and microdeposit verification
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
is the ACH driect debit?
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?
Yes, the payments made by passengers go into the Stripe account, and a certain amount for the drivers is withdrawn from the Stripe account.
Okie, and which component will you use? a mobile SDK or a web page?
react native mobile