Support » Plugin: WooCommerce Square » Woocommerce Square Checkout Keeps Loading

  • Resolved daniyalmunirbaig

    (@daniyalmunirbaig)


    I have successfully integrated square with woocommerce using woocomerce square plugin. The checkout option for credit card is showing. When i try to checkout and place orders using my credit card it keeps loading and never proceeds.
    https://followersbase.com/checkout/

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Juan G. (woo-hc)

    (@judagutor)

    Hi @daniyalmunirbaig!

    Thank you for reaching out.

    As a first step, please try enabling debug mode. There are two different kinds of logs you would need to enable:

    1. One found in WooCommerce → Settings → Square.
    2. You can find the other one under WooCommerce → Settings → Payments → Square.

    Once you enable them, please try to recreate the steps that lead to the endless loading page. Then, go to WooCommerce → Status → Logs and share with us the available Square error logs.

    We will be awaiting your response.

    Thanks!

    Thread Starter daniyalmunirbaig

    (@daniyalmunirbaig)

    There were 2 logs, i am attaching both below.

    07-31-2022 @ 02:44:55 - Request
     Request
    method:
    uri: listLocations
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.31491s
    
    07-31-2022 @ 02:44:55 - Response
     Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Sat, 30 Jul 2022 22:44:55 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json
        [square-version] => 2021-10-20
        [squareup--connect--v2--common--versionmetadata-bin] => CgoyMDIxLTEwLTIw
        [vary] => Accept-Encoding, User-Agent
        [content-encoding] => gzip
        [content-length] => 859
        [x-sq-dc] => iad2b
        [x-sq-region] => iad2b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "locations": [
            {
                "id": "LZWSY7TK8KRET",
                "name": "FOLLOWERSBASE LTD",
                "address": {
                    "address_line_1": "71-75 Shelton Street",
                    "locality": "London",
                    "postal_code": "WC2H9JQ",
                    "country": "GB"
                },
                "timezone": "Europe\/London",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-26T08:16:46.905Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "phone_number": "+44 7577 556144",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "https:\/\/followersbase.com\/",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 51.514774,
                    "longitude": -0.123765
                },
                "mcc": "8999",
                "full_format_logo_url": "https:\/\/square-web-production-f.squarecdn.com\/files\/a098bfc94ec943a5db0bd0392faa4f9546f87384\/original.png",
                "tax_ids": {}
            },
            {
                "id": "L1J70N1AG68EW",
                "name": "Online Global",
                "address": {
                    "address_line_1": "82 west ManhattanBou St.",
                    "locality": "New York",
                    "postal_code": "00001",
                    "country": "GB"
                },
                "timezone": "Europe\/London",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-26T11:40:08.040Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "followersbase.com",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 53.06443313,
                    "longitude": -0.14107848
                },
                "mcc": "8999",
                "tax_ids": {}
            },
            {
                "id": "L5Y4D5DN2AWJ2",
                "name": "Online USD",
                "address": {
                    "address_line_1": "71-75 Shelton Street",
                    "locality": "London",
                    "postal_code": "WC2H9JQ",
                    "country": "GB"
                },
                "timezone": "America\/New_York",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-29T18:39:10.487Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "phone_number": "+44 7577 556144",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "https:\/\/followersbase.com\/",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 51.514774,
                    "longitude": -0.123765
                },
                "mcc": "8999",
                "full_format_logo_url": "https:\/\/square-web-production-f.squarecdn.com\/files\/fc63799e5c2def8cedf778aa6f731e3e91b41652\/original.png",
                "tax_ids": {}
            }
        ]
    }
    
    07-31-2022 @ 02:45:06 - Request
     Request
    method:
    uri: listLocations
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.30467s
    
    07-31-2022 @ 02:45:06 - Response
     Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Sat, 30 Jul 2022 22:45:06 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json
        [square-version] => 2021-10-20
        [squareup--connect--v2--common--versionmetadata-bin] => CgoyMDIxLTEwLTIw
        [vary] => Accept-Encoding, User-Agent
        [content-encoding] => gzip
        [content-length] => 859
        [x-sq-dc] => iad2b
        [x-sq-region] => iad2b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "locations": [
            {
                "id": "LZWSY7TK8KRET",
                "name": "FOLLOWERSBASE LTD",
                "address": {
                    "address_line_1": "71-75 Shelton Street",
                    "locality": "London",
                    "postal_code": "WC2H9JQ",
                    "country": "GB"
                },
                "timezone": "Europe\/London",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-26T08:16:46.905Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "phone_number": "+44 7577 556144",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "https:\/\/followersbase.com\/",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 51.514774,
                    "longitude": -0.123765
                },
                "mcc": "8999",
                "full_format_logo_url": "https:\/\/square-web-production-f.squarecdn.com\/files\/a098bfc94ec943a5db0bd0392faa4f9546f87384\/original.png",
                "tax_ids": {}
            },
            {
                "id": "L1J70N1AG68EW",
                "name": "Online Global",
                "address": {
                    "address_line_1": "82 west ManhattanBou St.",
                    "locality": "New York",
                    "postal_code": "00001",
                    "country": "GB"
                },
                "timezone": "Europe\/London",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-26T11:40:08.040Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "followersbase.com",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 53.06443313,
                    "longitude": -0.14107848
                },
                "mcc": "8999",
                "tax_ids": {}
            },
            {
                "id": "L5Y4D5DN2AWJ2",
                "name": "Online USD",
                "address": {
                    "address_line_1": "71-75 Shelton Street",
                    "locality": "London",
                    "postal_code": "WC2H9JQ",
                    "country": "GB"
                },
                "timezone": "America\/New_York",
                "capabilities": [
                    "CREDIT_CARD_PROCESSING",
                    "AUTOMATIC_TRANSFERS"
                ],
                "status": "ACTIVE",
                "created_at": "2022-07-29T18:39:10.487Z",
                "merchant_id": "ML4W4V7611QDM",
                "country": "GB",
                "language_code": "en-GB",
                "currency": "GBP",
                "phone_number": "+44 7577 556144",
                "business_name": "FOLLOWERSBASE LTD",
                "type": "MOBILE",
                "website_url": "https:\/\/followersbase.com\/",
                "business_hours": {
                    "periods": [
                        {
                            "day_of_week": "SUN",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "MON",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "TUE",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "WED",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "THU",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "FRI",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        },
                        {
                            "day_of_week": "SAT",
                            "start_local_time": "00:00:00",
                            "end_local_time": "23:59:00"
                        }
                    ]
                },
                "business_email": "payments@followersbase.com",
                "coordinates": {
                    "latitude": 51.514774,
                    "longitude": -0.123765
                },
                "mcc": "8999",
                "full_format_logo_url": "https:\/\/square-web-production-f.squarecdn.com\/files\/fc63799e5c2def8cedf778aa6f731e3e91b41652\/original.png",
                "tax_ids": {}
            }
        ]
    }
    

    second log here:

    07-30-2022 @ 16:41:40 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    
    07-30-2022 @ 16:48:30 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    
    07-30-2022 @ 21:55:23 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    
    07-31-2022 @ 01:01:12 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 1
        [expYear] => 2027
        [last4] => 5674
    )
    
    07-31-2022 @ 01:08:54 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 1
        [expYear] => 2027
        [last4] => 5674
    )
    
    07-31-2022 @ 01:45:27 - Square.js Response:
     Array
    (
        [brand] => MASTERCARD
        [expMonth] => 8
        [expYear] => 2026
        [last4] => 7660
    )
    
    07-31-2022 @ 02:35:52 - Square.js Response:
     Array
    (
        [brand] => MASTERCARD
        [expMonth] => 8
        [expYear] => 2026
        [last4] => 7660
    )
    
    07-31-2022 @ 02:36:47 - Square.js Response:
     Array
    (
        [brand] => MASTERCARD
        [expMonth] => 8
        [expYear] => 2026
        [last4] => 7660
    )
    
    07-31-2022 @ 02:40:44 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 1
        [expYear] => 2027
        [last4] => 5674
    )
    
    07-31-2022 @ 02:44:00 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    
    07-31-2022 @ 02:45:50 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    
    07-31-2022 @ 02:46:38 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2027
        [last4] => 9129
    )
    

    I also noticed that when i try with square, paypal log was also created at the same time. i disabled paypal but still doesnt work.
    Additionally, i also tried entering wring card details and place the order but still no difference.

    Thread Starter daniyalmunirbaig

    (@daniyalmunirbaig)

    Additionally, i just went to inspect element on chrome and from there i went to console once the never ending loading started. I got the following errors in chrome console:

    admin-bar-v2.js?ver=11.1.2-202230:3 Missing data from PHP (wpNotesArgs).
    (anonymous) @ admin-bar-v2.js?ver=11.1.2-202230:3
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    wc-square-digital-wallet.min.js?ver=3.1.0:1 [Square] Building digital wallet payment form
    square.js?ver=3.1.0:1 Square: Building payment form
    square.js?ver=3.1.0:1 Square: Payment form loaded
    square.js?ver=3.1.0:1 Method unsupported: Apple Pay is only available on Safari.
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    ​ WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: 
    v @ public-api.wordpress.com/:16
    square.js?ver=3.1.0:1 Square: Recalculating payment form size
    square.js?ver=3.1.0:1 Square: Requesting payment nonce
    square.js?ver=3.1.0:1 Square: Card data received
    square.js?ver=3.1.0:1 Square: [object Object]
    square.js?ver=3.1.0:1 Square: Verifying buyer
    square.js?ver=3.1.0:1 Square: [object Object]
    connect.squareup.com/v2/analytics/verifications:1          Failed to load resource: the server responded with a status of 400 ()
    square.js?ver=3.1.0:1 Uncaught (in promise) VerifyBuyerError: An issue occurred while verifying the buyer
      <code></code> is not a valid enum value for <code>verification_details.billing_contact.country</code>.: verification_details.billing_contact.country
        at square.js?ver=3.1.0:1:285072
        at Generator.throw (<anonymous>)
        at yh (square.js?ver=3.1.0:1:282504)
        at s (square.js?ver=3.1.0:1:282745)
    
    Thread Starter daniyalmunirbaig

    (@daniyalmunirbaig)

    Any update on how i can troubleshoot the issue?

    Mirko P.

    (@rainfallnixfig)

    Hi @daniyalmunirbaig!

    Thanks for the logs and console errors.

    It seems there is a connection issue that prevents a successful transaction.

    WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed

    connect.squareup.com/v2/analytics/verifications:1 Failed to load resource: the server responded with a status of 400 ()

    Can you make a test purchase with the Sandbox Mode via the Square settings using the incognito window in Chrome and after disabling all other plugins except WooCommerce core and WooCommerce Square?

    Let us know how it goes.

    Thread Starter daniyalmunirbaig

    (@daniyalmunirbaig)

    Hey Mirko,
    I did what you suggested. I disabled everything else and tried using sandbox. It’s still the same error. Following from the chrome comsole

    [Square] Building digital wallet payment form
    square.js?ver=3.1.0:1 Square: Building payment form
    followersbase.com/:144 
     GET https://www.googletagmanager.com/gtag/js?id=AW-314565177 net::ERR_CONNECTION_REFUSED
    followersbase.com/:153 
     GET https://www.googletagmanager.com/gtag/js?id=UA-233075398-1 net::ERR_CONNECTION_REFUSED
    square.js?ver=3.1.0:1 Square: Payment form loaded
    m=IZT63,ws9Tlc,p8L0o…d,ZyYHPb,Das5Le:168 
     GET https://www.google-analytics.com/analytics.js net::ERR_CONNECTION_REFUSED
    www.google-analytics.com/analytics.js:1 
     Failed to load resource: net::ERR_CONNECTION_REFUSED
    single-card-element-iframe.html:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://square-fonts-production-f.squarecdn.com/square-text/SquareSansText-Regular.woff2
    square.js?ver=3.1.0:1 Method unsupported: Your website's domain is not registered for use with Apple Pay.
    See: https://developer.squareup.com/docs/payment-form/add-digital-wallets/apple-pay#production-configuration
    6
    Each dictionary in the list "icons" should contain a non-empty UTF8 string field "type".
    square.js?ver=3.1.0:1 Square: Requesting payment nonce
    square.js?ver=3.1.0:1 Square: Card data received
    square.js?ver=3.1.0:1 Square: [object Object]
    square.js?ver=3.1.0:1 Square: Verifying buyer
    square.js?ver=3.1.0:1 Square: [object Object]
    frame.html?referer=h…com%2Fcheckout%2F:1 
     POST https://connect.squareupsandbox.com/v2/analytics/verifications 400
    square.js?ver=3.1.0:1 Uncaught (in promise) VerifyBuyerError: An issue occurred while verifying the buyer
      <code></code> is not a valid enum value for <code>verification_details.billing_contact.country</code>.: verification_details.billing_contact.country
        at square.js?ver=3.1.0:1:285066
        at Generator.throw (<anonymous>)
        at yh (square.js?ver=3.1.0:1:282498)
        at s (square.js?ver=3.1.0:1:282739)
    (anonymous)	@	square.js?ver=3.1.0:1
    yh	@	square.js?ver=3.1.0:1
    s	@	square.js?ver=3.1.0:1
    Promise.then (async)		
    handle_card_nonce_response	@	wc-square.min.js?ver=3.1.0:1
    (anonymous)	@	wc-square.min.js?ver=3.1.0:1
    Promise.then (async)		
    handleSubmission	@	wc-square.min.js?ver=3.1.0:1
    validate_payment_data	@	wc-square.min.js?ver=3.1.0:1
    (anonymous)	@	wc-square.min.js?ver=3.1.0:1
    dispatch	@	jquery.min.js?ver=3.6.0:2
    v.handle	@	jquery.min.js?ver=3.6.0:2
    trigger	@	jquery.min.js?ver=3.6.0:2
    triggerHandler	@	jquery.min.js?ver=3.6.0:2
    submit	@	checkout.min.js?ver=6.7.0:1
    dispatch	@	jquery.min.js?ver=3.6.0:2
    v.handle	@	jquery.min.js?ver=3.6.0:2

    Can we please escalate it cz i have been trying to fix this for days now and getting absolutely no help.

    Thread Starter daniyalmunirbaig

    (@daniyalmunirbaig)

    Update:

    I was able to resolve the connection error that i was facing before.
    Now it’s authenticating but now i am receiving the following error:

    “An error occurred, please try again or try an alternate form of payment.”

    Here is the log from woocommerce

    08-03-2022 @ 00:08:34 - Request
    method:
    uri: createOrder
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.92387s
    
    08-03-2022 @ 00:08:34 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Tue, 02 Aug 2022 20:08:34 GMT
        [content-type] => application/json;charset=utf-8
        [content-length] => 466
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [square-version] => 2021-10-20
        [vary] => Accept-Encoding, User-Agent
        [content-encoding] => gzip
        [x-sq-dc] => iad3b
        [x-sq-region] => iad3b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "order": {
            "id": "3iSypzZnK2pGqzAwKbRAKGIevaB",
            "location_id": "LBTB0BZ0JHNH6",
            "reference_id": "2112",
            "source": {
                "name": "Sandbox for sq0idp-Mu_i-PICbpts9zSG6MYc7w"
            },
            "customer_id": "ZC5RAABKZ4YAS1TKKAVG4JMYCM",
            "line_items": [
                {
                    "uid": "sufGH6kepsZqLkIq1lXB0B",
                    "name": "Instagram 5,000 Likes",
                    "quantity": "1",
                    "item_type": "ITEM",
                    "base_price_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 2299,
                        "currency": "USD"
                    }
                }
            ],
            "net_amounts": {
                "total_money": {
                    "amount": 2299,
                    "currency": "USD"
                },
                "tax_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "discount_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "tip_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "service_charge_money": {
                    "amount": 0,
                    "currency": "USD"
                }
            },
            "created_at": "2022-08-02T20:08:34.228Z",
            "updated_at": "2022-08-02T20:08:34.228Z",
            "state": "OPEN",
            "version": 1,
            "total_money": {
                "amount": 2299,
                "currency": "USD"
            },
            "total_tax_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_discount_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_tip_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_service_charge_money": {
                "amount": 0,
                "currency": "USD"
            }
        }
    }
    
    08-03-2022 @ 00:08:34 - Request
    method:
    uri: createPayment
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.26878s
    
    08-03-2022 @ 00:08:34 - Response
    code: 400
    message:
    headers: Array
    (
        [0] => HTTP/2 400
        [date] => Tue, 02 Aug 2022 20:08:34 GMT
        [content-type] => application/json
        [content-length] => 195
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [x-sq-dc] => sjc2b
        [x-sq-region] => sjc2b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: Array
    (
        [0] => Square\Models\Error Object
            (
                [category:Square\Models\Error:private] => INVALID_REQUEST_ERROR
                [code:Square\Models\Error:private] => INVALID_ENUM_VALUE
                [detail:Square\Models\Error:private] => <code></code> is not a valid enum value for <code>Country</code> (line 1, character 483)
                [field:Square\Models\Error:private] => billing_address.country
            )
    
    )
    
    08-03-2022 @ 00:08:34 - Status code INVALID_ENUM_VALUE: <code></code> is not a valid enum value for <code>Country</code> (line 1, character 483)
    08-03-2022 @ 00:10:30 - Square.js Response:
     Array
    (
        [brand] => VISA
        [expMonth] => 2
        [expYear] => 2023
        [last4] => 1111
    )
    
    08-03-2022 @ 00:10:31 - Request
    method:
    uri: createCustomer
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.28126s
    
    08-03-2022 @ 00:10:31 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Tue, 02 Aug 2022 20:10:31 GMT
        [content-type] => application/json
        [content-length] => 223
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [square-version] => 2021-10-20
        [squareup--connect--v2--common--versionmetadata-bin] => CgoyMDIxLTEwLTIw
        [vary] => Accept-Encoding, User-Agent
        [content-encoding] => gzip
        [x-sq-dc] => sjc2b
        [x-sq-region] => sjc2b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "customer": {
            "id": "H89QZM0KFMW9740ZGK8YMKXQVC",
            "created_at": "2022-08-02T20:10:31.337Z",
            "updated_at": "2022-08-02T20:10:31Z",
            "email_address": "d@g.com",
            "address": {
                "postal_code": "10001"
            },
            "preferences": {
                "email_unsubscribed": false
            },
            "creation_source": "THIRD_PARTY",
            "version": 0
        }
    }
    
    08-03-2022 @ 00:10:32 - Request
    method:
    uri: createOrder
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.84601s
    
    08-03-2022 @ 00:10:32 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Tue, 02 Aug 2022 20:10:32 GMT
        [content-type] => application/json;charset=utf-8
        [content-length] => 469
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [square-version] => 2021-10-20
        [vary] => Accept-Encoding, User-Agent
        [content-encoding] => gzip
        [x-sq-dc] => iad3b
        [x-sq-region] => iad3b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "order": {
            "id": "TUcUKG8pBs8w1JJ7s9HA4U1kuaB",
            "location_id": "LBTB0BZ0JHNH6",
            "reference_id": "2112",
            "source": {
                "name": "Sandbox for sq0idp-Mu_i-PICbpts9zSG6MYc7w"
            },
            "customer_id": "H89QZM0KFMW9740ZGK8YMKXQVC",
            "line_items": [
                {
                    "uid": "pCZOGwXM6EufMRYo1NxTAC",
                    "name": "Instagram 5,000 Likes",
                    "quantity": "1",
                    "item_type": "ITEM",
                    "base_price_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 2299,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 2299,
                        "currency": "USD"
                    }
                }
            ],
            "net_amounts": {
                "total_money": {
                    "amount": 2299,
                    "currency": "USD"
                },
                "tax_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "discount_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "tip_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "service_charge_money": {
                    "amount": 0,
                    "currency": "USD"
                }
            },
            "created_at": "2022-08-02T20:10:31.917Z",
            "updated_at": "2022-08-02T20:10:31.917Z",
            "state": "OPEN",
            "version": 1,
            "total_money": {
                "amount": 2299,
                "currency": "USD"
            },
            "total_tax_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_discount_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_tip_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_service_charge_money": {
                "amount": 0,
                "currency": "USD"
            }
        }
    }
    
    08-03-2022 @ 00:10:32 - Request
    method:
    uri: createPayment
    user-agent: WooCommerce-Square/3.1.0 (WooCommerce/6.7.0; WordPress/6.0.1)
    headers: Array
    (
    )
    body:
    duration: 0.26496s
    
    08-03-2022 @ 00:10:32 - Response
    code: 400
    message:
    headers: Array
    (
        [0] => HTTP/2 400
        [date] => Tue, 02 Aug 2022 20:10:32 GMT
        [content-type] => application/json
        [content-length] => 195
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [x-sq-dc] => sjc2b
        [x-sq-region] => sjc2b
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: Array
    (
        [0] => Square\Models\Error Object
            (
                [category:Square\Models\Error:private] => INVALID_REQUEST_ERROR
                [code:Square\Models\Error:private] => INVALID_ENUM_VALUE
                [detail:Square\Models\Error:private] => <code></code> is not a valid enum value for <code>Country</code> (line 1, character 483)
                [field:Square\Models\Error:private] => billing_address.country
            )
    
    )
    
    08-03-2022 @ 00:10:32 - Status code INVALID_ENUM_VALUE: <code></code> is not a valid enum value for <code>Country</code> (line 1, character 483)
    Mirko P.

    (@rainfallnixfig)

    Hi @daniyalmunirbaig,

    Sorry to hear you’re still having issues. Please contact us at WooCommerce.com > My Account > Support, and we’ll be happy to check this further there.

    You may have to log in to your WooCommerce.com account before opening that link.

    Don’t forget to include a link to this forum thread, so that we can keep track of what’s already been done.

    As further assistance will be provided via our internal ticketing system, I’ll go ahead and close this forum thread.

    Feel free to create a new topic if you have other questions.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce Square Checkout Keeps Loading’ is closed to new replies.