#hiren-prajapati_code

1 messages ยท Page 1 of 1 (latest)

sacred ravineBOT
#

๐Ÿ‘‹ 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/1324737833155432478

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

supple cosmos
#

๐Ÿ‘‹ happy to help

#

would you mind elaborating your question?

inland bear
#

req_gtZSiJehOzYoQr

#

How to get stripe account status pending to verfied through webook?

supple cosmos
#

as you can see the account is missing requirements.past_due "external_account"

inland bear
#

cuurent i am create the stripe account correct so in response give me pending right and after seconds auto matcally verifed but how to update in my own db through

inland bear
supple cosmos
inland bear
#

"status": "new"

but this status why give me new each time i amm add exteranl account in test mode how to get this status as verifed

#

ID
req_ajOa87obc4TRsF

#

in webhook through give me staus updated

#

?????

supple cosmos
#

@inland bear please be patient

#

I'm not sure I understand your question

inland bear
#

how to get the external bank account status new to verified in test mode

supple cosmos
inland bear
#

export const addExternalBankAccount = async (stripeAccountId, bankAccountDetails, filePath) => {
try {
const bankAccount = await stripe.accounts.createExternalAccount(stripeAccountId, {
external_account: {
object: 'bank_account',
country: bankAccountDetails.country || 'GB',
currency: bankAccountDetails.currency || 'GBP',
account_holder_name: bankAccountDetails.accountHolderName,
account_holder_type: 'individual',
account_number: bankAccountDetails.accountNumber,
routing_number: bankAccountDetails.sortCode,
},
});

if (process.env.NODE_ENV === 'development') {
  bankAccount.status = 'verified';
}
return bankAccount;

} catch (error) {
if (error.message.includes('You must use a test bank account number in test mode')) {
throw new ApiError(STATUS_CODES.BAD_REQUEST, "Invalid account number. Use test account '00012345' for testing.");
}

// Generic error handling
throw new ApiError(STATUS_CODES.INTERNAL_SERVER_ERROR, `Failed to add bank account`);

}
};

supple cosmos
inland bear
#

Yes i have use this numbers but not geeting verifed status in the external_account.updated event

ID
req_ajOa87obc4TRsF this is req id you can check and point me if any missing for that status

#

IN test mode

supple cosmos
#

the request you shared is the one which creates the account

#

but not the bank account that needs to be added to the account in order for it to receive payouts

inland bear
#

"requirements": {
"alternatives": [
],
"currently_due": [
],
"errors": [
],
"eventually_due": [
],
"past_due": [
],
"pending_verification": [
]

in this requirement to getting status as new so how to get verifed

#

"requirements": {
"alternatives": [
],
"current_deadline": null,
"currently_due": [
"external_account"
],
"disabled_reason": "requirements.past_due",
"errors": [
],
"eventually_due": [
"external_account"
],
"past_due": [
"external_account"
],
"pending_verification": [
]

#

i need new to verifed status in external account in test mode which time to getting this status

#

which requirement to fulfill

#

to geeting me this status

supple cosmos
#

I've been telling you the exact same answer since the beginning of this conversation

#

you need to create an external account for this account

#

external_account = bank account for payout

inland bear
#

yes i have created man

supple cosmos
#

which one?

inland bear
#

but status give me new

supple cosmos
#

give me the request ID please

inland bear
#

"external_accounts": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/accounts/acct_1Qch6dPbZrUcmQvA/external_accounts"
},
"future_requirements": {
"alternatives": [
],
"current_deadline": null,
"currently_due": [
],
"disabled_reason": null,
"errors": [
],
"eventually_due": [
],
"past_due": [
],
"pending_verification": [
]
},
"individual": {
"id": "person_1Qch6dPbZrUcmQvAKXMYkt5q",
"object": "person",
"account": "acct_1Qch6dPbZrUcmQvA",
"address": {
"city": "London",
"country": "GB",
"line1": "221B Baker Street",
"line2": "Apt 3",
"postal_code": "NW1 6XE",
"state": null
},
"created": 1735796283,
"dob": {
"day": 1,
"month": 1,
"year": 1970
},
"email": "mohit@yopmail.com",
"first_name": "Mohit",
"future_requirements": {
"alternatives": [
],
"currently_due": [
],
"errors": [
],
"eventually_due": [
],
"past_due": [
],
"pending_verification": [
]
},
"last_name": "Mahavar",
"metadata": {
},

req_8ohqFBegnUYilZ

supple cosmos
#

req_8ohqFBegnUYilZ
this request creates the Connected Account

#

not the External Account

#

and based on "/v1/accounts/acct_1Qch6dPbZrUcmQvA/external_accounts" Request
it means you haven't created any External Account yet

inland bear
#

{
"id": "ba_1N9DrD2eZvKYlo2C58f4DaIa",
"object": "bank_account",
"account": "acct_1032D82eZvKYlo2C",
"account_holder_name": "Jane Austen",
"account_holder_type": "individual",
"account_type": null,
"available_payout_methods": [
"standard"
],
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"fingerprint": "1JWtPxqbdX5Gamtz",
"last4": "6789",
"metadata": {},
"routing_number": "110000000",
"status": "new"
}

supple cosmos
#

did you attach it to the account?

inland bear
#

yess

supple cosmos
#

I can't find this bank account id

inland bear
#

ba_1QbfBXPd6NyRomsIh23dXKUQ

#

in this external account id right currently this sattus is new correct so how to get as verifed in test mode

supple cosmos