What is the best way to achieve setting tos_acceptance to recipient? We need this for international bank transfers when an account is created rather than being set to âFULLâ. I wonât be touching the class-payout.php especially if we can create a code snippet in functions.php to handle this.
I have a minor update on the issue. If I onboard an account manually Iâm able to do it and change the service agreement as you can see. But I had to fill in all the data manually on behalf of the âcustomerâ. Usually clicking on +Create account and choosing which kind Custom/Standard/Express will generate an onboarding link that did not happen this time thatâs why I had to manually fill.
Weâve gotten to the bottom of this and we know what custom function we need now. We need a few things to be added to the code snippet in our functions.php. When I modify the class to look like this it works!
We need a code snippet that will do the following:
Change âtypeâ => âcustomâ instead of âexpressâ
Add the tos_acceptance for âservice_agreementâ => ârecipientâ as youâve already provided.
Make the default_currency attribute NULL or remove it entirely like I have above commented out
Remove card_payments attribute from the capabilities array like I have above commented out
Hopefully this is much easier for you to write rather than following this entire thread. If we can get a code snippet for the above 4 items we are all set with this and we can launch our product!
Thanks for the details, I hope someone will share their experience of setting up the whole Stripe workflow because it seems to depend on the website owner and vendor countries of residence. Please try using the same snippet suggested above, you can remove or override any of the Stripe API request parameters this way, e.g.: