#mahiman_code

1 messages ยท Page 1 of 1 (latest)

lyric vortexBOT
fickle anvilBOT
#

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.

lyric vortexBOT
#

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

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

lone mortar
#

hi there!

#

are you doing this in the dasboard or with the API?

latent nest
#

API

#

Here's the code
$stripe = Cartalyst\Stripe\Laravel\Facades\Stripe::make(env('STRIPE_SECRET'));
$account_values = [
'external_account' => [
'object' => 'bank_account',
'country' => $bank_data['country_name'],
'currency' => $bank_data['currency'],
'account_holder_name' => $bank_data['account_holder_name'],
'account_holder_type' => $bank_data['account_holder_type'],
'routing_number' => $bank_data['routing_number'],
'account_number' => $bank_data['account_number']
],
];

    $account = $stripe->Account()->update($bank_data['id'], $account_values);
lone mortar
latent nest
#

It's returning below error for GB and GBP
[2024-05-10 07:33:11] local.INFO: Invalid currency: gbp. You can use these currencies for transfers for an account in US: usd

latent nest
lone mortar
#

the error seems pretty clear: in the US you can only have a usd account.

latent nest
#

if i want to add UK country bank account then what to do?

#

As the my account is configured for UK

#

But still it's showing US related error

lone mortar
latent nest
#

See it's London so it shold accept UK account

#

???

lone mortar
#

can you answer my above question?

latent nest
#

acct_1ErmKHL47ncEHyoY

lone mortar
#

Thanks. It looks like you are not using Stripe API, but a custom laravel API?

latent nest
#

Yes

#

Cartalyst\Stripe\Laravel

#

but the error looks like coming from Stripe

#

as it works we for US account only not for any other country

lone mortar
latent nest
#

Let me check and share it with you

#

Please check this

lone mortar
#

can you copy the req_xxx ID?

latent nest
#

req_MwYI5rt3mQ7ci2

lone mortar
#

that connected account has a US country

#

so you must use usd for the currency

latent nest
#

from where I can change it?

#

as in my account setting i"ve set it to london

#

I just want to connect and UK account, what countyr code and currency code should I use?

lone mortar
#

in the requets you shared, you are trying to edit a connected account: acct_1N1pqePvbWiXH0P3. this account is based in the US.

fickle anvilBOT
latent nest
#

I've tried with UK account details from the stripe documentation for fake account, and used countyr code GB and currency GBP, so i was getting US account error in that as well

lone mortar
#

can you share the request ID with that error?

latent nest
#

Okay, let me share

latent nest
#

req_TWJnBE44ycwiIS

#

Pleae check

#

req_MvKrbJFtIl8Ez3

#

Check this I made new request, it has GBP and GB currency and country code and account details as also from UK based

quick sonnet
#

๐Ÿ‘‹ jumping in as soma had to step away

So you're trying to attach a GBP account to a US connected account?

#

I don't think that's supported

latent nest
#

The account I want to connect is UK based and my stripe account is also UK based both as UK based

latent nest
#

??

quick sonnet
#

I'd recommend checking the request again.
acct_1N1pqePvbWiXH0P3 is a US based account

latent nest
#

As I said i took the account details from the stripe document it self and the reference account details and details Im requested are same

#

Check the screenshot

quick sonnet
#

I think you're confused. I'm not talking about the bank account

#

I am talking about the "Connected account"

latent nest
#

Are you talking about stripe account?

quick sonnet
#

In your request, you're attaching the external account to acct_1N1pqePvbWiXH0P3

#

that connected account is US based

latent nest
#

what is acct_1N1pqePvbWiXH0P3?

quick sonnet
#

That's the connected account ID you're setting in your request