• Resolved Elite12

    (@elite12)


    Updated to version 2.1.0 and got an error on checkout saying “There was an error, please try again or select a different form of payment”.

    Below is the from debug log

    Square.js Response:
    Array
    (
    [code] => EXPECTED_STRING
    [type] => INVALID_REQUEST_ERROR
    [message] => Expected a string value.: verification_details.billing_contact.address_lines[1]
    )

    Downgrading to 2.0.8 Fixed it

Viewing 3 replies - 1 through 3 (of 3 total)
  • Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hi there,

    An issue was introduced recently and occurs only when the address 2 line is hidden. As a temporary workaround, you can fix by making this field required in `Appearance > Customize > WooCommerce > Checkout like so:

    https://d.pr/i/BYZYut

    This is tied to the address verification check.

    Thread Starter Elite12

    (@elite12)

    That did not work for me. I however was able to edit the wc-square.min.js and removed the line t(“#billing_address_2”).val and now it works fine.

    • This reply was modified 5 years ago by Elite12.
    Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Ok, if I’m correct, making it “optional” won’t be sufficient, it has to be set as “required” but of course, I know that in some countries this address line 2 doesn’t exist which is a bummer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Version 2.1.0 INVALID_REQUEST_ERROR’ is closed to new replies.