You are not asked “Pay whom?” if you are standing inside a shop, it just selects the shopkeeper whose shop you’re in. Also, you are not asked if you can see multiple shopkeepers, but don’t owe money to more than one.