• Resolved Keely Dunn

    (@kdunn)


    I’ve been going around in circles and examined several “closed” but unresolved threads all over the internet on this one (including in this forum).

    I sell to countries like Sweden and Belgium who do not use the state/county billing or shipping field. When they select their stateless country and attempt to process the transaction, they get an error that the state field is blank, even though it’s been hidden.

    How can I fix this problem, which really shouldn’t be a problem at all?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @kdunn!

    I sell to countries like Sweden and Belgium who do not use the state/county billing or shipping field. When they select their stateless country and attempt to process the transaction, they get an error that the state field is blank, even though it’s been hidden.

    Is the transaction error coming from the payment gateway? If so, what payment gateway/processor are you using on your site?

    Thread Starter Keely Dunn

    (@kdunn)

    I’m using Stripe. It’s hard to be sure what error messages they’re receiving as I’m getting the information from customers who sometimes don’t describe things well in English. According to today’s customer, the screenshot of the error says “Payment not completed | There was an error processing your order. Please try again.”, and “it complained that I didn’t fill in the state.”

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Thanks for clarifying that, Keely.

    I just did a test on my site using version 4.3.1 of our Stripe plugin and WooCommerce 3.9.1, and as soon as I selected Belgium as the Country, the State field was automatically removed and my test purchase was successful without any info in the State field.

    Are you using our Stripe plugin, or a different integration?

    Thread Starter Keely Dunn

    (@kdunn)

    I’m using your plugin. If you have suggestions on how I can test it on my install I’m happy to try it, but without having a Swedish or Belgian credit card I don’t know how to debug.

    I believe WC was upgraded overnight (I received email 250am AEDT) and as part of this, there were changes to the MaxMind Geolocate integration, which requires store owners to approve an EULA to use the geolocate service.

    Is it possible that the affected customers placed orders after the upgrade took place, but before approving the EULA and as such, geolocate didn’t work so the integration doesn’t recognise that they’re in a stateless country?

    Thread Starter Keely Dunn

    (@kdunn)

    This Swedish customer attempted a purchase earlier today. However, I had a Belgian customer have the same problem a month ago. We ended up working around it, I tried to figure it out at the time, and failed. There’s a history of others posting to forums with the same problem.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey Keely – In Stripe’s Test Mode, you can use the following card numbers with any valid expiration date and CVC:

    Belgium: 4000000560000004
    Sweden: 4000007520000008

    If you are wanting to test any other countries, this Stripe doc has the full list.

    Thread Starter Keely Dunn

    (@kdunn)

    Thanks for that, very helpful and probably something I should have found on my own. I was able to successfully process a Swedish transaction, so I’ve gone back to the customer and asked for them to try again. I’ll report back as soon as I have feedback from them.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Great! I would suggest making sure that the Stripe setting to save/log error messages is enabled too, just in case it doesn’t work for your customer.

    Thread Starter Keely Dunn

    (@kdunn)

    I’ve got logging turned on. I’ve looked at the log from that date but near as I can tell, the failed transaction doesn’t show up whatsoever, only my later successful attempt (when looking at timestamps and the unique data that I added to the user profile). The customer has a screenshot of the failure message so they definitely did try.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    The customer has a screenshot of the failure message so they definitely did try.

    Is the screenshot from the initial failure? Or did they try to place an order again recently and it failed too?

    If there isn’t a log for the failure, that means it is failing during the validation- before even attempting to process the transaction.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Since there haven’t been any updates in a while, I’m going to mark this thread as resolved. However, if you run into any other issues getting Stripe payments to process while using our plugin, please create a new post on the Stripe forums here:

    https://www.ads-software.com/support/plugin/woocommerce-gateway-stripe/

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Woocommerce Checkout Hidden State Field Still Required’ is closed to new replies.