#alcapone87

1 messages · Page 1 of 1 (latest)

young galeBOT
reef rock
#

Anyone have a solution?
the solution would be to not pass service_agreement: 'recipient' when also passing country:US, only pass it for accounts being created non-US countries.

hazy island
#

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() ] ),
                        ],
                    ]
                )
            );
reef rock
#

thanks! does my answer help?

hazy island
#

mhh i'm trying to check how can do it with the code I sent to u

reef rock
#

I'd expect it's as simple as

or along those lines, really.

hazy island
#

thanks for you help! sorry I did not reply anymore

jade coral
#

NP! Let us know if you need any other help