woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Amazon Pay Plugin Fails to Recognize Region/Province/States Names Without Accents #297

Open ChristianAF opened 2 months ago

ChristianAF commented 2 months ago

Describe the bug In certain countries, such as Spain, state or region names often contain accent marks (e.g., 'Málaga'). However, users may sometimes enter these names without the accents (e.g., 'Malaga'). In such cases, the Amazon Pay plugin fails to recognize the name correctly, prompting the user to reselect the region. This issue was resolved in the past but appears to have reoccurred.

To Reproduce Steps to reproduce the behavior:

  1. Go to site add a physical product to cart and use the Amazon Pay Express checkout
  2. Select an address (or add a new one) like in the description and continue for paying the order
  3. Amazon pay didn't detected the Province/REgion/State
  4. This is not happening with WooCommerce blocks but yes with the checkout shortcode

Screenshots image

Expected behavior Province/states/region should be detected in cases like mentioned in the description

Isolating the problem (mark completed items with an [x]):