• Resolved ferns

    (@ferns)


    I’m selling only digital products, so don’t need address fields at all. I just need an email address for confirmation & link delivery.

    To make it as simple as possible for customers, I want to have only mandatory fields for CC processing displayed in the checkout process, but I’m not sure which they are.

    In testing, a CC transaction will go through successfully with only Country/State/Postcode, but when I try and hide the street address and city fields, I get an error (even though those fields were empty when it processed successfully).

    The error in the log is always
    04-30-2020 @ 06:56:12 – Square.js Response:
    Array
    (
    [code] => EXPECTED_STRING
    [type] => INVALID_REQUEST_ERROR
    [message] => Expected a string value.: verification_details.billing_contact.address_lines[0]
    )

    OR

    billing_contact.address_lines[1]

    (I made all fields optional for this testing, and removed the fields via functions as per woocommerce info here, then with WooCommerce Checkout Field Editor plugin bec I couldn't get the first to work but got the same result)

    So my questions please:
    1. What are the mandatory fields passed through for CC processing?
    2. If those address fields aren't mandatory (which it seems they aren't since I could buy something with them left empty), is there a trick to removing/hiding the non-mandatory fields that I'm not understanding?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @ferns

    Square, not the plugin, requires information to authenticate the purchase. I see the postal code and country are required but address, name, and phone likely aren’t. You’ll want to confirm with them to know which fields you can remove.

    Thread Starter ferns

    (@ferns)

    Thanks for the reply.

    And yeah, I went to square first. Bizarrely they were not able to answer this question (I don’t know how that’s possible, but here we are :/).

    Ferns

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What fields are mandatory for CC payments?’ is closed to new replies.