Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  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,137
    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,747
    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,137
    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

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

    Default Re: Square payment not working

    Thank you dbltoe, that solved the issue!
    Ellie Armsby

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

    Default Re: Square payment not working

    Now I have discovered another issue with having switched over to the Square WebPay module:

    I've just added a coupon for the holidays and fine that if a user goes through the checkout process without a coupon, there is no problem. However when they add the coupon at the Payment Info screen, there is a red, scary message that says:

    "We have a problem on our end. So Sorry! Please report this error to the Store Owner: SQ-MISSING-TOKEN"

    They can still proceed to the confirmation and if they go back to previous screens the error message does not appear again. It seems to be only at the point at which they enter the code that the error occurs.

    I did do some searching the forum for this and found a few posts but they seemed to refer to carts with more than one payment option. I only have Square webpay.

    I was just about to do marketing of my coupon code but need to hold off until I solve this so that I'm not driving customers to the shop only to have them scared off by the message.
    Ellie Armsby

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

    Default Re: Square payment not working

    Quote Originally Posted by earmsby View Post
    Now I have discovered another issue with having switched over to the Square WebPay module:

    I've just added a coupon for the holidays and fine that if a user goes through the checkout process without a coupon, there is no problem. However when they add the coupon at the Payment Info screen, there is a red, scary message that says:

    "We have a problem on our end. So Sorry! Please report this error to the Store Owner: SQ-MISSING-TOKEN"

    They can still proceed to the confirmation and if they go back to previous screens the error message does not appear again. It seems to be only at the point at which they enter the code that the error occurs.

    I did do some searching the forum for this and found a few posts but they seemed to refer to carts with more than one payment option. I only have Square webpay.

    I was just about to do marketing of my coupon code but need to hold off until I solve this so that I'm not driving customers to the shop only to have them scared off by the message.
    A bit more testing of this behavior revealed that if the customer enters their card info into the Square Webpay form first and THEN enters the coupon code, the error message does not appear. Since the coupon code form appears above the card info form, I think many customers with a coupon will enter that first.

    Maybe I should be posting this over on the forum for this plug-in?
    Ellie Armsby

  10. #10
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Square payment not working

    i would suggest you look a little harder.

    i would also suggest, as a web designer, that you get a little better with css.

    https://tinyurl.com/2ez9u4p2

    i would also suggest that if you want to drive traffic to your site, you do not include multiple links which result in either a 404 or site not found:

    http://www.armsbyservices.com/portfolio_ecommerce.php

    finally, i would suggest more gratitude to the people that actually code the solutions that you sell and/or use.

    but hey that is just my opinion.

    good luck.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 1 of 2 12 LastLast

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