#mahiman_code
1 messages ยท Page 1 of 1 (latest)
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.
- mahiman_connected-accounts, 2 hours ago, 14 messages
- mahiman_code, 4 hours ago, 3 messages
๐ 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.
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);
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
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
I dont have it, I shared the above error which i get in erturn
the error seems pretty clear: in the US you can only have a usd account.
you can learn more about this here: https://docs.stripe.com/payouts#supported-accounts-and-settlement-currencies
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
can you share your account ID (acct_xxx)? it's at the top of this page: https://dashboard.stripe.com/settings/account
can you answer my above question?
acct_1ErmKHL47ncEHyoY
Thanks. It looks like you are not using Stripe API, but a custom laravel API?
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
and you cannot find the failed request ID from Stripe? https://dashboard.stripe.com/test/logs
can you copy the req_xxx ID?
req_MwYI5rt3mQ7ci2
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?
in the requets you shared, you are trying to edit a connected account: acct_1N1pqePvbWiXH0P3. this account is based in the US.
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
can you share the request ID with that error?
Okay, let me share
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
๐ 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
https://dashboard.stripe.com/test/logs/req_MvKrbJFtIl8Ez3
acct_1N1pqePvbWiXH0P3 is a US based account
The account I want to connect is UK based and my stripe account is also UK based both as UK based
No it's not, I took it from the stripe documentation it self
??
I'd recommend checking the request again.
acct_1N1pqePvbWiXH0P3 is a US based account
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
I think you're confused. I'm not talking about the bank account
I am talking about the "Connected account"
Are you talking about stripe account?
In your request, you're attaching the external account to acct_1N1pqePvbWiXH0P3
that connected account is US based
what is acct_1N1pqePvbWiXH0P3?
That's the connected account ID you're setting in your request