• Resolved jane-taubman

    (@jane-taubman)


    The stripe plugin works fine for most countries.

    However we have a customer from Zimbabwe who was having problems paying as WooCommerce was validating the postcode field even though the woocommerce code in class-wc-countries.php was set to

    					'ZW' => array(
    						'postcode' => array(
    							'required' => false,
    							'hidden'   => true,
    						),

    He still got an invalid postcode field error.

    I tried changing the code to

    					'ZW' => array(
    						'postcode' => array(
    							'required' => false,
    							'hidden'   => false,
    						),

    Which got past the first error, by entering a value in the postcode field, but he then got

    Cardcard Postcode validation failed.

    I am not sure where to look to fix the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hi @jane-taubman,

    Indeed, the postcode is hidden by default for Zimbabwe. From what I can tell, that’s correct, as Zimbabwe doesn’t have postal codes.

    It sounds like your Stripe rules are declining the transaction because the postal code is missing. I would double-check your fraud settings in Stripe:

    https://dashboard.stripe.com/radar/rules

    Perhaps Stripe support can help you determine why it fails postcode validation even though the postcode isn’t given.

    Check your Stripe logs for this user and see exactly what the error message is:

    https://dashboard.stripe.com/logs

    Thread Starter jane-taubman

    (@jane-taubman)

    As I said, if I don’t enable the postcode field and enter something it’s fails before sending to Stripe in the Woo Commerce section of the form validation. So ideally I want to fix that stage of the process.

    Plugin Support Thu P. a11n

    (@thup90)

    Hi Jane,

    As I said, if I don’t enable the postcode field and enter something it’s fails before sending to Stripe in the Woo Commerce section of the form validation.

    Can you send us the Stripe log so we can take a look of what could be the issue here? To get the log, make sure you enabled Stripe logging in WooCommerce > Settings > Payments > Stripe and copy logs for failed orders from WooCommerce > Status > Logs (choose Stripe from the drop-down) to your reply here.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stripe Checkout postcode validation for Zimbabwe’ is closed to new replies.