Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Unable to process payment due to a communications error

    I'm thinking that maybe things might have changed in 6 years.

    Let us know your ZC version, PHP version, and Square WebPay version.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #12
    Join Date
    Aug 2011
    Location
    North Dakota
    Posts
    67
    Plugin Contributions
    0

    Default Re: Unable to process payment due to a communications error

    Quote Originally Posted by dbltoe View Post
    I'm thinking that maybe things might have changed in 6 years.

    Let us know your ZC version, PHP version, and Square WebPay version.
    Thank you for your reply. Here is some info you requested....

    ZC version: 2.1.0, PHP 8.1, Square Web Pay Version 3.1.1

    >>(From Store Website Log)<<
    [09-May-2026 20:03:12 America/New_York] PHP Notice: Code: 401-> API request failed
    Status code: 401
    Body: {
    "errors": [
    {
    "category": "AUTHENTICATION_ERROR",
    "code": "UNAUTHORIZED",
    "detail": "This request could not be authorized."
    }
    ]
    }

    {} in /home/mystore/public_html/mystoredir/includes/modules/payment/square_webPay.php on line 535


    >>>>This Is What Line 535 Says:<<<<
    532 private function logSquareApiException(object $e, $body = ''): void
    533 {
    534 $message = 'Code: ' . $e->getCode() . '-> ' . $e->getMessage();
    535 trigger_error($message . PHP_EOL . PHP_EOL . json_encode($e));
    536 $this->logTransactionData([], $body, true, true, $message . print_r($e->getMessage(), true));
    537 }

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Unable to process payment due to a communications error

    You might try posting this in the square_Webpay support thread, but it kind of looks like the site's not receiving its access token.

  4. #14
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: Unable to process payment due to a communications error

    Quote Originally Posted by NDboots View Post

    [09-May-2026 20:03:12 America/New_York] PHP Notice: Code: 401-> API request failed
    Status code: 401
    Body: {
    "errors": [
    {
    "category": "AUTHENTICATION_ERROR",
    "code": "UNAUTHORIZED",
    "detail": "This request could not be authorized."
    }
    ]
    }
    i would suggest reviewing the zen-cart square documentation.

    the error message is pretty clear.

    ensuring the your application is properly provisioned, and that you have a valid OAuth token can some times be a challenge.

    but you are communicating with square, and square is telling you what is wrong.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Unable to process payment due to a communications error. (60)
    By Kenteman in forum General Questions
    Replies: 4
    Last Post: 24 Feb 2017, 04:34 PM
  2. v151 AIM Authorize.net module suddenly quit working due to SSL communications error?
    By Johnnycopilot in forum Addon Payment Modules
    Replies: 13
    Last Post: 30 Aug 2016, 07:20 PM
  3. v139h Unable to process PayPal Payment
    By silentavatar in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 11 Sep 2012, 01:43 AM
  4. Unable to process payment
    By Skypilot in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Aug 2011, 10:54 AM
  5. ghosting on cart/unable to process due to product not in inventory
    By angelfaye in forum Basic Configuration
    Replies: 1
    Last Post: 23 Nov 2009, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg