One international e-commerce BUT need to credit 2 separate entities (USA & European)

How to set-up the payment system so that sales are credited to 2 separate entities according to geographical sales ? Meaning if sales are in the USA (in USD) the US legal entity needs to be credited (on his bank account) AND if sales are in Europe (in EURO) the European entity needs to be credited as they have different shareholders.