Hello HivePress Team!
I don’t think there is anyone who figured out stripe payment workflow for all the countries available on stripe. The First issue is recipient agreement for the countries some countries ask for full recipient agreement and If we want to enable HivePress to have cross border payouts. Then we must add the recipient service agreement as well. However when we add recipient agreement with code snippet like I will share then other countries that requires full service agreement won’t be able to set up their payouts on Stripe. Don’t forget cross-border payouts are only enabled if your company is located in US. The other issue is the countries that has recipient service agreement will not accept card payments instead they will use transfer payments so the code must enables both depends on the country chosen. The currency issue can be solved by adding the code snippet that I will share as well but we need a function where it applies all. Ihor it would be amazing if you provide us a code and instructions to how to add this to our platforms. Here are all the codes available from the Hivepress Community.
"$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' => [
//'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() ] ),
],
]
)
);"
add_filter(
'hivepress/v1/components/stripe/create_account',
function($args){
unset($args['default_currency']);
return $args;
},
1000
);
add_filter(
'hivepress/v1/components/stripe/create_account',
function($args){
$args['tos_acceptance']['service_agreement'] = 'recipient';
return $args;
},
1000
);
The problems will occur anyways since the service agreement, and payment type will not be according the country chosen. Honestly, if we can solve this officially we can say that hivepress is a fully integrated platform with Stripe.
Hope to hear you soon guys!