square/SquarePointOfSaleSDK-iOS

locationID:nil not work

darkengine opened this issue · 1 comments

Point of Sale app will return with error when location_id is set to nil. In our case, Point of Sale app is login with merchant's account. And the payment request in our app is created with our Square Application ID. How can we pick a correct location ID in this case?

You would need to go through the OAuth process to get access to their Square account, and then you can use our APIs to list the locations (by calling ListLocations) and allowing them to choose a location, or choosing one for them.