• Resolved scolombo

    (@scolombo)


    When we try to process an order, the checkout page spins then does nothing…no error message shown, no order placed. Square is our only method of payment. We were able to place an order using check, so we know that woocommerce is working in general.

    Orders started to fail last week. We then updated all plugins and wordpress, still broken.

    Anyone have ideas?

    Here is what the console says:

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=main&app_id=sq0idp-wGVapF8sNt9PLrdj5znuKA&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=main&app_id=sq0idp-wGVapF8sNt9PLrdj5znuKA&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=cardNumber&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=cvv&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=postalCode&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=expirationDate&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=cardNumber&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=expirationDate&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=cvv&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=postalCode&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @scolombo,

    Sorry you’ve been having Square payment issues. When you say those errors are from the console, do you mean they are from the Square error logs under **WooCommerce > Status > Logs**?

    If those aren’t Square’s logs, I would next enable logging under WooCommerce > Settings > Payments and select Manage next to Square. Then at the bottom of those settings you’ll see a checkbox to enable Logging.


    Link to image: https://cld.wthms.co/t7saqj

    Then if any errors are logged you’ll find those under WooCommerce > Status > Logs tab. There will be a Square log for every day that logging is enabled. Pick the appropriate day to find that days logs.

    Thread Starter scolombo

    (@scolombo)

    Here’s a sampling from that log, user is my client, we’ve been trying to get orders to go through, with no luck. What does “Payment nonce is missing” mean?

    11-07-2019 @ 12:43:00 – Request
    method:
    uri: retrieveCustomerWithHttpInfo/JV3RGAXH9S04TXVG1SQE0841H0
    user-agent: WooCommerce-Square/2.0.5 (WooCommerce/3.8.0; WordPress/5.2.4)
    headers: Array
    (
    )
    body:
    duration: 0.52527s

    11-07-2019 @ 12:43:00 – Response
    code: 200
    message:
    headers: Array
    (
    [0] => HTTP/2 200
    [content-type] => application/json
    [square-version] => 2019-08-14
    [vary] => Origin, Accept-Encoding
    [x-content-type-options] => nosniff
    [x-download-options] => noopen
    [x-frame-options] => SAMEORIGIN
    [x-permitted-cross-domain-policies] => none
    [x-xss-protection] => 1; mode=block
    [date] => Thu, 07 Nov 2019 17:43:00 GMT
    [content-length] => 546
    [x-envoy-upstream-service-time] => 94
    [strict-transport-security] => max-age=604800; includeSubDomains
    [server] => envoy
    )
    body: {
    “customer”: {
    “id”: “WQ8XX9J2814GTZXP8R121P1V14”,
    “created_at”: “2016-09-08T12:38:17.699Z”,
    “updated_at”: “2018-03-13T09:56:03Z”,
    “given_name”: “Diana”,
    “family_name”: “Levy”,
    “email_address”: “[email protected]”,
    “address”: {
    “address_line_1”: “21 Woodfield Drive”,
    “locality”: “Short Hills”,
    “administrative_district_level_1”: “NJ”,
    “postal_code”: “07078”,
    “country”: “US”
    },
    “phone_number”: “973-379-8577”,
    “reference_id”: “2”,
    “preferences”: {
    “email_unsubscribed”: false
    },
    “groups”: [
    {
    “id”: “8MHYCMJWK0DX6.REACHABLE”,
    “name”: “Reachable”
    }
    ],
    “creation_source”: “MERGE”
    }
    }

    11-07-2019 @ 12:43:31 – Payment nonce is missing

    Thread Starter scolombo

    (@scolombo)

    The console was the browser console (from Firefox – firebug).

    Thread Starter scolombo

    (@scolombo)

    One other bit – when my client got in touch, orders had been failing for a few days – and we noticed that square was disconnected – at that point I updated woocommerce and all plugins and reconnected their store.

    Prior to doing that, the orders at least showed in woocommerce as failed orders – now we don’t even get that far. The checkout page spins then nothing happens.

    Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @scolombo,

    That Square log file is very helpful, a nonce is a tokenized version of a customers card that Square would generate to use for charges.

    Regarding that nonce error could you please send us a copy of your site’s System Status? You can find it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here.

    My first assumption is a conflict coming from another piece of software on your site. Most often it would be where the theme interferes with the data being passed to Square. Plugins can also do this, but most commonly it’s improperly coded theme templates with the payment-form.php area or similar.

    As a first step in troubleshooting, do you have a staging site? If your host doesn’t offer that option, we recommend WP Staging (https://www.ads-software.com/plugins/wp-staging/) for quickly spinning up a new test site. Then there I’d recommend changing to the default Twenty Seventeen or Storefront theme and then trying again. You can read more about how to do this at this link:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    If that doesn’t help, you’ll want to check for plugins that are interfering with the values sent to Square. To do that disable all plugins, except for WooCommerce and the WooCommerce Square. Should this still not work with only these 2 active, please let me know.

    Thread Starter scolombo

    (@scolombo)

    Thanks Ryan, I’ll work on this tomorrow.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    What does “Payment nonce is missing” mean?

    WordPress uses nonce, “number once used” for session management. The error means that there is a problem generating the nonce which in turn invalidates the session. Was that the entire log entry?

    Invalid X-Frame-Options: “ALLOWALL” header from “https://pci-connect.squareup.com/v2/iframe?type=main&app_id=sq0idp-wGVapF8sNt9PLrdj5znuKA&version=a07af2241d” loaded into “https://www.undercoverchocolate.com/checkout/”.

    The X-Frame-Options is a HTTP security header. Apparently https://pci-connect.squareup.com/v2/ sends a ALLLOWALL with the iframe. There is no such option for the X-Frame-Options. That is why it says “Invalid”.
    For reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

    Could you ask Square about this. They need to correct their server config and remove the invalid statement.

    Kind regards,

    Thread Starter scolombo

    (@scolombo)

    Ok, so are you saying this can only be corrected on the square side? How is this working for other people? is there a way for me to fix it or go around it on our end?

    Thanks so much for replying.

    Sharon

    Thread Starter scolombo

    (@scolombo)

    A few more thoughts below! Thanks! -Sharon

    1. I coded the custom theme a few years ago, we’ve not updated it and didn’t have any issues until a few weeks ago. I am not sure if a plugin or WordPress updated without my knowledge (sometimes the host updates things and my clients do also, but I don’t think they did, but it’s possible – we did update everything once the trouble started thinking it would fix things). The theme hasn’t changed.
    2. The only woocommerce file I overwrite in the theme is single-product.php. Is it possible that’s not passing something important to the cart? But why would that suddenly break the site since we’ve not changed it?
    3. Here’s the system status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.undercoverchocolate.com
    Site address (URL): https://www.undercoverchocolate.com
    WC Version: 3.8.0
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: 5.2.4
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.20
    PHP Post Max Size: 32 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.62.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.44-cll-lve
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.8.0
    WC Database Prefix: wp_
    Total Database Size: 30.56MB
    Database Data Size: 27.22MB
    Database Index Size: 3.34MB
    wp_woocommerce_sessions: Data: 0.15MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.07MB + Index: 0.04MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.45MB + Index: 0.29MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_cf7dbplugin_st: Data: 0.03MB + Index: 0.05MB + Engine MyISAM
    wp_cf7dbplugin_submits: Data: 4.39MB + Index: 0.34MB + Engine MyISAM
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.32MB + Index: 0.14MB + Engine MyISAM
    wp_email_log: Data: 17.31MB + Index: 0.05MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 1.20MB + Index: 0.38MB + Engine MyISAM
    wp_postmeta: Data: 2.42MB + Index: 1.41MB + Engine MyISAM
    wp_posts: Data: 0.51MB + Index: 0.25MB + Engine MyISAM
    wp_sbi_instagram_feeds_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_sbi_instagram_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_usermeta: Data: 0.33MB + Index: 0.23MB + Engine MyISAM
    wp_users: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_square_customers: Data: 0.03MB + Index: 0.04MB + Engine MyISAM
    wp_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (13) ###
    
    Advanced Custom Fields PRO: by Elliot Condon – 5.8.6
    Classic Editor: by WordPress Contributors – 1.5
    Contact Form DB: by Michael Simpson – 2.10.26
    Contact Form 7: by Takayuki Miyoshi – 5.1.4
    Huge IT Lightbox: by Huge-IT – 2.1.0
    Mailgun: by Mailgun – 1.7.1
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.3.5
    WooCommerce Square: by WooCommerce – 2.0.6 – Not tested with the active version of WooCommerce
    WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.23.7
    WooCommerce Wholesale Prices: by Rymera Web Co – 1.10 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.8.0
    Yoast SEO: by Team Yoast – 12.4 – Not tested with the active version of WooCommerce
    WP Store Locator: by Tijmen Smit – 2.2.231
    
    ### Inactive Plugins (8) ###
    
    Email Log: by Sudar – 2.3.1
    Limit Login Attempts: by Johan Eenfeldt – 1.7.1
    Smash Balloon Instagram Feed: by Smash Balloon – 2.1.1
    Under Construction: by Noah Kagan – 1.18
    WC Variations Radio Buttons: by 8manos – 2.0.2 – Not tested with the active version of WooCommerce
    WooCommerce - ShipStation Integration: by WooCommerce – 4.1.30
    WooCommerce Helper: by WooCommerce – 1.7.2 – Not tested with the active version of WooCommerce – Network enabled
    WP-SpamShield: by Scott Allen – 1.9.14
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #15 - /shop/
    Cart: #16 - /cart/
    Checkout: #17 - /checkout/
    My account: #18 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: undercoverchocolate
    Version: 1.0
    Author URL: https://colombodesigns.com
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: undercoverchocolate/woocommerce/single-product.php
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: ?
    Debug Mode: Off
    
    ### Action Scheduler ###
    
    Complete: 44
    Oldest: 2019-10-18 16:38:54 -0400
    Newest: 2019-11-08 15:47:40 -0500
    
    Pending: 2
    Oldest: 2019-11-15 15:44:01 -0500
    Newest: 2019-11-15 15:47:41 -0500
    
    Canceled: 4
    Oldest: 2019-11-05 14:52:52 -0500
    Newest: 2019-11-13 15:53:40 -0500
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    smallakin

    (@smallakin)

    I’m having the same issue. I’m using Square version 1.0.38 still because 2.0.6 still doesn’t fix the issue of field to enter credit cards disappearing.

    I hadn’t changed anything on the site and suddenly orders started failing on 11/11. Customer gets error of “Square was unable to complete the transaction. Please try again later or a different form of payment.” Logs show it initiating the charge and then failing with “Unknown Error”. Paypal is working fine.

    ckalous

    (@ckalous)

    Same issue. Not accepting credit card payments. Just resets all fields. This was happening with 2.0.5, too. I, too, am rolled back to 1.0.38.

    Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @smallakin,

    That is odd as well, the error is not very helpful at all though unfortunately. ??

    Is there any chance you can disconnect and then reconnect your site to Square, just to see if that helps?

    Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @ckalous,

    Not accepting credit card payments. Just resets all fields.

    When you say it’s resetting all fields what do you mean? Can you elaborate on the error you were having? This was one Square 2.0.5 as well?

    Thread Starter scolombo

    (@scolombo)

    @ryanr14 and @conschneider did you see my other posts? My client has had to switch to paypal and would very much like to go back to using Square.

    Sharon

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    > Ok, so are you saying this can only be corrected on the square side? How is this working for other people? is there a way for me to fix it or go around it on our end?

    I think so.

    > 1. I coded the custom theme a few years ago, we’ve not updated it and didn’t have any issues until a few weeks ago. I am not sure if a plugin or WordPress updated without my knowledge (sometimes the host updates things and my clients do also, but I don’t think they did, but it’s possible – we did update everything once the trouble started thinking it would fix things). The theme hasn’t changed.

    Ok.

    > 2. The only woocommerce file I overwrite in the theme is single-product.php. Is it possible that’s not passing something important to the cart? But why would that suddenly break the site since we’ve not changed it?

    Impossible to tell without knowing the details and doing some testing. But I agree it is unlikely since the add to cart action does not rely on the template file.

    > 3. Here’s the system status report:

    Thank you. From the top of my head:

    WooCommerce Wholesale Prices – will not work with WooCommerce Square out of the box.
    Advanced Custom Fields – anything setup for WooCommerce?

    Kind regards,

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Square Payment Failing’ is closed to new replies.