Results 1 to 10 of 800

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,944
    Plugin Contributions
    96

    Default Re: Square WebPay

    Quote Originally Posted by DML73 View Post
    The first one is the authorizenet module, I use this for credit card processing, and then only use the squarepay module for Apple and Google Pay.
    You can change the Square Webpay language file's constant:
    Code:
        define('MODULE_PAYMENT_SQ_WEBPAY_TEXT_CATALOG_TITLE', 'Google Pay/Apple Pay');  // Payment option title as displayed to the customer

  2. #2
    Join Date
    Oct 2007
    Posts
    412
    Plugin Contributions
    0

    Default Re: Square WebPay

    Ah yes that will work

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,535
    Plugin Contributions
    127

    Default Re: Square WebPay

    If you are using Square as a storeowner and you have a developer working with you, they can have their own account so you don't have to coordinate for two factor authentication checks. It's called creating an Authorized Representative. See https://docs.zen-cart.com/user/payme...representative
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Square WebPay

    ZC Version 2.2.2 with PHP 8.5, OPC and WebPay 3.1.2

    The ID and Secret are verified and from production vs test. Callback URL established correctly as well.

    I cannot verify that the customer is using the correct SDK until tomorrow (I forgot to look when I was in there)

    The upgrade was done by first removing the includes/modules/payment/square_webPay folder per instructions.

    Purchase attempts are getting " Unable to process payment due to a communications error. You may try again or contact us for assistance."

    Log file is:
    Code:
    [04-Jun-2026 00:00:52 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 246.197.16.99, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 /includes/modules/payment/square_webPay.php(535): trigger_error()
    #2 /includes/modules/payment/square_webPay.php(514): square_webPay->logSquareApiException()
    #3 /includes/modules/payment/square_webPay.php(469): square_webPay->paymentRequest()
    #4 /includes/classes/payment.php(382): square_webPay->before_process()
    #5 /includes/modules/checkout_process.php(110): payment->before_process()
    #6 /includes/modules/pages/checkout_process/header_php.php(13): require('/home/spicdavi/...')
    #7 /index.php(40): require('/home/******/...')
    --> PHP Notice: Code: 400-> API request failed
    Status code: 400
    Body: {"errors": [{"code": "INVALID_CARD_DATA","detail": "Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.","category": "INVALID_REQUEST_ERROR"}]}
    {} in /includes/modules/payment/square_webPay.php on line 535.
    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.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Square WebPay

    Quote Originally Posted by dbltoe View Post
    ZC Version 2.2.2 with PHP 8.5, OPC and WebPay 3.1.2

    The ID and Secret are verified and from production vs test. Callback URL established correctly as well.

    I cannot verify that the customer is using the correct SDK until tomorrow (I forgot to look when I was in there)

    The upgrade was done by first removing the includes/modules/payment/square_webPay folder per instructions.

    Purchase attempts are getting " Unable to process payment due to a communications error. You may try again or contact us for assistance."

    Log file is:
    Code:
    [04-Jun-2026 00:00:52 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 246.197.16.99, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 /includes/modules/payment/square_webPay.php(535): trigger_error()
    #2 /includes/modules/payment/square_webPay.php(514): square_webPay->logSquareApiException()
    #3 /includes/modules/payment/square_webPay.php(469): square_webPay->paymentRequest()
    #4 /includes/classes/payment.php(382): square_webPay->before_process()
    #5 /includes/modules/checkout_process.php(110): payment->before_process()
    #6 /includes/modules/pages/checkout_process/header_php.php(13): require('/home/spicdavi/...')
    #7 /index.php(40): require('/home/******/...')
    --> PHP Notice: Code: 400-> API request failed
    Status code: 400
    Body: {"errors": [{"code": "INVALID_CARD_DATA","detail": "Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.","category": "INVALID_REQUEST_ERROR"}]}
    {} in /includes/modules/payment/square_webPay.php on line 535.
    there is a mis-configuration going on. specifically between the production and sandbox environments.

    i would suggest deleting all of your access tokens, their refresh tokens, and their TTL values. and then ensure that you the correct ID and Secret for the selected environment.

    those keys are all something like:

    MODULE_PAYMENT_SQ_WEBPAY_ACCESS_TOKEN
    MODULE_PAYMENT_SQ_WEBPAY_TOKEN_EXPIRES_AT
    MODULE_PAYMENT_SQ_WEBPAY_REFRESH_TOKEN
    MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN
    MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN_EXPIRES_AT
    MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_REFRESH_TOKEN

    you can review this post.

    as well as this post.

    the first post takes a hammer and reconstructs. the 2nd post takes a dull scalpel and then sews up.... in both cases you will need to get a new oauth token.

    hopefully that will help resolve this issue.

    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.

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Square WebPay

    That was interesting, to say the least. I did, in fact, find the old data in the database.

    However, this situation was a bit different, as the business was sold and the current owner was adding their code to the mod. That was in addition to the upgrade from 2.2.0 to 2.2.2 in the midst of everything else.

    The SDK was one step newer as well, so I set it correctly.

    The only problem now (minor at best) is that orders processed under the previous owner throw an error when viewing details or using Edit Orders due to the company changing hands.

    Thanks for pointing me in the right direction. The docs showed no search results for Card nonce not found in this application or any variance of that search string.
    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.

 

 

Similar Threads

  1. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 820
    Last Post: 16 May 2026, 01:07 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  3. Square Support for SqPaymentForm ending 15th July 2022
    By brittainmark in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Apr 2022, 02:40 PM
  4. v156 Square Payments and strange request from Square
    By ianhg in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2020, 11:14 AM
  5. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 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