I am getting this error:
Exception when calling TransactionApi->charge:object(stdClass)#6 (1) { ["errors"]=> array(1) { [0]=> object(stdClass)#7 (3) { ["category"]=> string(20) "AUTHENTICATION_ERROR" ["code"]=> string(12) "UNAUTHORIZED" ["detail"]=> string(37) "This request could not be authorized." } } }
please help me with this. if i have to set anything on my account.
@CSK- Thanks for stopping by to visit. We welcome you to the Community!!
I can't pinpoint the exact issue with the information you provided but more likely, that error usually means your credentials are miss matched. If you are testing in sandbox, make sure you're using all the correct credentials for that environment and the same goes for when you are in production.
I hope this helps!
Square Community