Results 1 to 10 of 800

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    ok, a few changes coming.

    for those of you who use square as the only payment method, and want to prevent the funny message, the cool kids way is here:

    this file here:
    includes/modules/pages/checkout_payment/jscript_square_webPay.php
    Code:
    //line 39 was:
    if (document.querySelector('#pmt-square_webPay').checked)  {
    
    //change it to:
    if ((document.querySelector('#pmt-square_webPay').checked) || (document.querySelector('#pmt-square_webPay').getAttribute('type') == 'hidden')) {
    also, with that change, i do not think we will ever get here, but in:

    includes/modules/payment/square_webPay.php

    line 266, should be changed to something like:

    PHP Code:
    $messageStack->add_session('checkout_payment''uh...  looks like you did not input a credit card number!''error'); 
    these changes will be incorporated into a new release.

    thank you to those who support me.
    Thanks carlwhat.

    square_webPay-master from 7/26/2022. My code line was actually line 179 instead of 39, and there's an extra space before { on the example (which made finding it weird), but it works now!

    I didn't change the messageStack, because I couldn't determine which line needed changing, but agree we probably won't get there.
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

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

    Default Re: Square WebPay support thread.

    Quote Originally Posted by VDecalS View Post
    Thanks carlwhat.

    square_webPay-master from 7/26/2022. My code line was actually line 179 instead of 39, and there's an extra space before { on the example (which made finding it weird), but it works now!

    I didn't change the messageStack, because I couldn't determine which line needed changing, but agree we probably won't get there.
    my apologies. it was late, and i was looking at the wrong file for the line number.

    it is ~around line 180, and according to my code, line 185 on v1.0.3.

    thanks for confirming the fix.

    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.

 

 

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