#alcapone87
1 messages · Page 1 of 1 (latest)
Anyone have a solution?
the solution would be to not passservice_agreement: 'recipient'when also passingcountry:US, only pass it for accounts being created non-US countries.
Hi Karl this is the code that we are using
// Create new account.
$account = hivepress()->payout->stripe()->accounts->create(
apply_filters(
'hivepress/v1/components/stripe/create_account',
[
'type' => 'express',
'country' => $vendor->get_country(),
'email' => $vendor->get_user__email(),
'default_currency' => get_woocommerce_currency(),
'capabilities' => [
'card_payments' => [ 'requested' => true ],
'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() ] ),
],
]
)
);
thanks! does my answer help?
mhh i'm trying to check how can do it with the code I sent to u
I'd expect it's as simple as
or along those lines, really.
thanks for you help! sorry I did not reply anymore
NP! Let us know if you need any other help