Receiving 401 Errors

Created a Square account and received credentials for the Sandbox for using the SPaymentForm. Everything works great and I can validate the results in my Dashboard. The customer I am working for sent me her Sandbox credentials and using the same code with her credentials I received 401 errors upon loading the page. Will her credentials not work for me and if not why?

732 Views
Message 1 of 2
Report
1 REPLY 1
Square Community Moderator

Hey @mcoogan51,

 

I reached out to the API team and they replied with the following:

 

"To load the payment form you need an application id, which it sounds like they got from their merchant. To take a payment, they would also need their access token, and with an invalid access token then it would result in a 401 error."

 

+

 

"They (the developer) should create the application, and then use OAuth to request access to their merchant’s accounts: OAuth API Page"

Ashley C
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
684 Views
Message 2 of 2
Report