I've thought of structuring that by having a Panama company develop and own the IP, and using a US, EU, or Canadian company to do the payment processing, and just pass the revenue through. That company would have no profits, and thus no taxes. I'm hardly an expert though, so I don't know if it would really work.