• Resolved moirtechnology

    (@moirtechnology)


    Hey guys,

    I’m using Squares API with my Woocommerce store for:
    https://www.yourcbdstoretucson.com/
    The actual page that the issue is occuring on:
    https://www.yourcbdstoretucson.com/checkout/yourcbdstoretucson/
    On that page is an area to enter credit card information, which currently, out of nowhere, decided to entirely stop working. It seems as if the credit card area is like a photo. Unfillable.
    Now, when I go to enter in my data on an non-incognito window and I’m already signed into the wordpress admin account, it works perfectly fine. ??

    Keep in mind that I’ve done these tests before without any issues. This is a first of it’s kind. I never even performed a plugin update or anything of that nature.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    I just tried to take a look several times, but I keep getting “Technical Difficulties”. Screenshot: https://cld.wthms.co/rOoX8Y

    I will try again tomorrow.

    Kind regards,

    PatMarcello

    (@patmarcello)

    My client is having the same issue. You can’t enter the information. We tried disconnecting and re-connecting, but that did no good. And again, you can enter the information for Square when you’re logged into the website, but not in an incognito window. The site is https://vvego.com

    everville

    (@everville)

    Both of the sites have the SG Optimizer plugin. You need to go into that plugin and disable the “Minify JavaScript Files” option. Loading the “wc-square.min.js” file deferred breaks the checkout. This also applies to users of Autoptimize. However, with Autoptimize it can be excluded from the concatenation.

    Here’s how to disable…
    https://www.siteground.com/tutorials/wordpress/sg-optimizer/frontend-optimization/

    PatMarcello

    (@patmarcello)

    Awesome! Thanks for the quick reply. I’ll do that.

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    You can exclude it in SG Optimizer too, there’s a nice interface for that…

    Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @moirtechnology,

    Did the reply from @everville help clear things up. It seems to definitely be cache related since you can use the Square card form when logged in but not when logged out.

    I think excluding the correct files will get checkout working again for any users who get the cached and optimized files.

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    You need to exclude the wc-square.min.js from the Defer Render-Blocking Scripts optiization. We will add it to the global list of excludes but meanwhile, you can select it from the list of scripts with one click.

    This is the intended way SG Optimizer works. Not every JS can be deferred without problems so this is why after enabling such optimization you need to look into your site and exclude everything that doesn’t work well!

    Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Thanks a ton for the info and update @hristo-sg, it’s much appreciated. We all appreciate the work that helps SG Optimizer and WooCommerce play well together. ??

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    You’re welcome. We will release an update hopefully (unit test, etc.) tomorrow morning ??

    PatMarcello

    (@patmarcello)

    That would be awesome! Thanks @hristo-sg. That’s one reason I recommend Site Ground to all of my clients. Your support is amazing.

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Thanks for the kind words!

    Thread Starter moirtechnology

    (@moirtechnology)

    I’m finally back at my desk, the past 2 days have been hectic. I’ll let you know if the caching concept works! ??

    PatMarcello

    (@patmarcello)

    Hi @moirtechnology Turning off .js minify worked for me! Thanks @ryanr14. Simple fix.

    Thread Starter moirtechnology

    (@moirtechnology)

    @patmarcello Awesome! Did you turn it off entirely or just the file (https://js.squareup.com/v2/paymentform)?

    Thread Starter moirtechnology

    (@moirtechnology)

    Woohoo, you guys helped me solve my issue, thank you so much! ??
    @everville @hristo-sg

    The solution that worked for me,
    Through the SG Optimizer Plugin I did the following;
    Minify Javascript Files, I excluded https://js.squareup.com/v2/paymentform
    Defer Render-blocking JS, I excluded /plugins/woocommerce-square/assets/js/frontend/wc-square.min.js

    Thanks guys! ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Square API not allowing card information to be entered’ is closed to new replies.