#alcapone87
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_T0w5sLDH83IQRD
if i automaticcaly on board client the account is going to be created as CUSTOM but with FULL SERVICE AGREEMENT
support said that doesn't know how to do it. I manually created an account from the dashboard +create and I was able to do it. so something is missing in my API probably
if I tried to : When we put in 'tos_acceptance' => ['service_agreement' => 'recipient'] and 'transfers' => [ 'requested' => true ] like below:
$account = hivepress()->payout->stripe()->accounts->create(
apply_filters(
'hivepress/v1/components/stripe/create_account',
[
'type' => 'custom',
'country' => $vendor->get_country(),
'email' => $vendor->get_user__email(),
'default_currency' => get_woocommerce_currency(),
'capabilities' => [
'transfers' => [ 'requested' => true ],
],
'tos_acceptance' => ['service_agreement' => 'recipient'],
'business_profile' => [
'name' => $vendor->get_name(),
'url' => hivepress()->router->get_url( 'vendor_view_page', [ 'vendor_id' => $vendor->get_id() ] ),
],
]
)
);
We get the following error:
Do you have the related request Id of this call ?
let me check sorry
req_UEu3dKzUVerzt9
should be that one
sorry too many attempts
req_UEu3dKzUVerzt9
req_C1Lha9WHozw9Ky
yes those two
Yes hi everyone ty for invite alcapone
Let us know if you need more details @slow dove
thanks for sharing, let me check please
It looks like you are missing the transfer 'capabilities' => ['transfers' => ['requested' => true]],
Oh! Let me try that quick
We have 'capabilities' => [
'transfers' => [ 'requested' => true ],
],
check the above code we posted
@slow dove we just made a new one so the request log is this one req_F3Nqu5uWW2RkkR
maybe was my fault before i gave u the wrong long as we made different request
Now the error message is more accurate I think
Stripe currently doesn't support currency usd with country IT.
You need to change the curreny or the country to be compatible
Oh how can we do that?
so all receiving addresses should have USD and Stripe handles the conversion for us?
In the request you need to change default_currency:EUR in the request or country:USD
What if we put default_currency:USD
our main platform account is in the US and a US bank account
but it is possible for people to purchase listing from recipients in Italy with an Italian bank account
when a customer is onboarding they can decide what currency they want. In fact, if I manually do it an account creation from Stripe Dashboard payment works correctly also if we have a US account with $ as currency and the final account has € due is in europe.
default_currency:EUR seems more specific to payments not the actual onboarding of a new customer
Yes, but the connected account is based in Italy according to your request. So their default currency must be their local currency
we are open to onboard 23 different countries how we can set a default value?
Simply don't set the field default_currency when creating the Account, it's optional
https://stripe.com/docs/api/accounts/create#create_account-default_currency
what is the PHP for that? let me try
ok we are trying again
I see we get it from woocommerce
hang on please while we test
Just remove that property from the request
ok let me try
its working!!!! thanks!!!