Allow multiple mode payments #6448

It allows sale payments using multiple gateways.
get the priorities outside the map or it will execute it for each item in the list.