This is a solved problem in most of the world, except for US and Canada
(Inside SEPA they're almost like a domestic transaction as well though it takes a couple a days)