- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Exception when calling TransactionApi->charge:
C:\wamp\www\square_pay\v3\connect-php-sdk-master1\payment-process.php:38: object(stdClass)[6] public 'errors' => array (size=1) 0 => object(stdClass)[7] public 'category' => string 'AUTHENTICATION_ERROR' (length=20) public 'code' => string 'UNAUTHORIZED' (length=12) public 'detail' => string 'The `Authorization` http header of your request was malformed. The header value is expected to be of the format "Bearer TOKEN" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. "Bearer ABC123def456GHI789jkl0"). For more information, see https://developer.squareup.com/docs/build-basics/using-rest-api#__set-the-headers__. If you are seeing this error message while using one of our officially supported SDKs, please report this to developers@squareup.com.' (length=491)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hi there @ndulg 👋
Did you happen to catch the link included within the text you shared with us here? There's a link to our page from our developer documentation about using the REST API. If you're not able to find what you need by reading through the steps there, I linked some developer resources here that should get you where you need to be.
For more information, see https://developer.squareup.com/docs/build-basics/using-rest-api#__set-the-headers__. If you are seeing this error message while using one of our officially supported SDKs, please report this to developers@squareup.com.
Did you see the above error message while using one of our officially supported SDKs? If so, please let us know by sending a message over to developers@squareup.com.
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
It would be great to see integrate square payment gateway.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report