Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Square payment not working

    new installation of 1.5.7d using the built-in Square module

    I am going around in circles trying to get payments working through my Square account. I think several things may be in play so let me outline the steps.

    1) On Monday my live store (v. 1.5.5e) using an old version of the Square plug-in stopped working. The fields for the credit card info would not accept input (as though they were inactive). After some digging around, it seemed that the issue was that Square turned off "SqPaymentForm" as of October 31 which apparently rendered the old square module inoperable. (on that forum topic someone added this link in response to my post about the issue: https://developer.squareup.com/docs/...2031%2C%202022)

    2) In troubleshooting the issue I had with my live store, I could see that the API version my Square app was using was old.

    3) Since I was long overdue anyway, I went ahead and set up a new testing store with zencart v. 1.5.7d (I can't go straight to 1.5.8 yet due to some PHP upgrading that has to be done first).

    4) In my testing with 1.5.7d I configured the built-in Square module to connect to my existing Square app (the one with the outdated API version). Lo and behold, it worked! I was able to place a test order and the payment went through.

    5) This morning, after completing other testing and tweaks in preparation to move to the new 1.5.7d site, the Square payment no longer works. Same symptoms as what I experienced on Monday with the older module.

    6) I started over with Square. Created a new App using the most recent API, did all the same steps of adding the App ID, the secret, adding the redirectURL and so forth. Then I uninstalled and reinstalled the Square module in zc 1.5.7d and did the steps to set up (including access token). Still no luck. The credit card fields are inactive.

    I'm kind of at a loss (not to mention unable to receive credit card payment until I get this sorted out). The link that carlwhat posted in my other thread over on the plug-in forum topic seems geared toward developers rather than users of something like the ZC square module. What am I missing?

    Thanks for any help!
    Ellie Armsby

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

    Default Re: Square payment not working

    The square mod included with Zen Cart was turned off for good just the other day.

    You will need to use the Square WebPay module and install it. With a new install, there's no need to remove or do anything to the old Square files.

  3. #3
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Square payment not working

    Thank you dbltoe! I have been banging my head on this since Monday. I even checked for a different payment module but the one you linked to didn't come up in the plug-in library for some reason when I searched. I will try that and hopefully be able to take payments again!
    Ellie Armsby

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Square payment not working

    The square API for the old module was scheduled to be turned off on OCT 31st 2022 but for some reason, they left it on until sometime late on November 6th or early on the 7th
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Square payment not working

    Thanks for the replies both here and in the old Square plug-in thread. I got the new Square module up and working and am happily taking payments again.

    I just discovered a by-product problem of having turned off the old Square module and activated Square Webpay. When I go to look at an order from before the switch, an error is thrown related to square and I can not longer see the details of the order (because they load lower in the page than the payment stuff). Checking the logs, I'm seeing this error:

    Code:
    PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string 
    (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT) at position 0 (M): The timezone could not be found in the 
    database in /PATH/TO/MY/store/includes/modules/payment/square.php:526
    The instructions for setting up Webpay said to remove the old square mod rather than just turn it off. Should I reinstall it but not activate it?

    We do need to occasionally check the order details for older orders, for instance if an item was back-ordered or there was a delivery problem.
    Ellie Armsby

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

    Default Re: Square payment not working

    Quote Originally Posted by earmsby View Post
    I just discovered a by-product problem of having turned off the old Square module and activated Square Webpay. When I go to look at an order from before the switch, an error is thrown related to square and I can not longer see the details of the order (because they load lower in the page than the payment stuff).
    https://www.zen-cart.com/showthread....30#post1388730

 

 

Similar Threads

  1. v156 Square Payments and strange request from Square
    By ianhg in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2020, 11:14 AM
  2. Replies: 5
    Last Post: 4 Sep 2019, 05:10 PM
  3. Replies: 1
    Last Post: 2 Mar 2019, 07:12 PM
  4. v151 Toggling Category/Product Status in admin by clicking on red/green square not working
    By woodlandsprite in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 29 Oct 2012, 11:20 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR