So I'm making a Square Point of Sale integration for a web app.
Square Point of Sale Web API for Android
I'm passing in the CLIENT_ID in the intent:#Intent declaration as described in the documentation linked above. This information is passed to the Square Point of Sale app that handles the transactions. The passed CLIENT_ID is supposed to match the APPLICATION_ID of the account used to sign into the Square POS app.
The problem I am having is that the transaction doesn't throw an error when those IDs are mismatched. This potentially creates a situation where the POS operator can log into their own Square POS account and divert our revenue to their personal account. Seems like a significant security hole.
The documentation linked above indicates that I should receive an UNAUTHORIZED_CLIENT_ID error.
I have literally passed in a CLIENT_ID of 'sausage' and it still failed to throw any error whatsoever.
Any insight whatsoever would be very much appreciated. Thanks in advance.