Whenever a transaction is processed, there is always a location selection that occurs before accessing the POS/cart.
From Admin, click on which location you are looking to sell the product, credit, or membership.
The location selection is how the system determines which location the payment will be processed through and the associated gateway for that location.