woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
234 stars 204 forks source link

No error message presented when incorrect billing province is used in Apple Pay. #2569

Open avantegarde opened 1 year ago

avantegarde commented 1 year ago

Describe the bug Apple Pay returns Payment Not Completed when the billing province is incorrect. But there is no error message presented to the customer on the front-end to indicate that the error is with the billing province.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to pay for an order with Apple Pay
  2. Use the following address:
Viale Eroi Di Cefalonia 145
00128
Roma
Lazio
Italy
  1. Apple Pay will return Payment Not Completed and close the modal.
  2. No error is present on the checkout page indicating that the issue was the billing province.

If you instead use the following address, the order will be successful.

Viale Eroi Di Cefalonia 145
00128
Roma
Roma
Italy

Expected behavior When entering an incorrect billing province in Apple Pay, Stripe should output an error that states that the billing province is invalid.

Screenshots Screen Shot 2023-02-12 at 4 24 40 PM

Environment (please complete the following information):

Additional context Additional details and conversation: p1676217694284599-slack-C7U3Y3VMY

WooCommerce Payments lets the customer know that the billing province is not valid:

Screen Shot on 2023-02-22 at 13-50-37

Square also lets the customer know that the issue is with the Province:

image

5917996-zd-woothemes

pierorocca commented 1 year ago

@avantegarde do you happen to have the UI that's allowing Lazio, a region not a province, to be entered as a province? Or is the issue happening on the back-end?

avantegarde commented 1 year ago

My apologies @pierorocca for the delay here. I believe the address is pre-populated by Apple Pay within their shipping address UI.

Immagineallegata-1
paulostp commented 1 year ago

Just adding to @avantegarde's comment. When you start adding an address to Apple Pay, the form will offer to auto-complete it. If you accept it, Lazio will be used instead of Roma.

1 2

pierorocca commented 1 year ago

Definitely an Apple Pay bug. Lazio is not a province. Google gets it right. image

pierorocca commented 1 year ago

Let me raise this with the partnerships team that works with Apple.

pierorocca commented 1 year ago

Email has been sent to our contacts at Apple highlighting this issue. I understand this has been brought up in the past highlighting Hong Kong addresses as being problematic.

mbellagamba commented 1 year ago

I just want to point out that I'm experiencing the same issue. It probably happens with all Italy addresses. As an additional information, I noticed that the payment is successful also removing the incorrect Province (the value "Lazio" in the @avantegarde's example). However this is a poor experience for users that are already paying using an address configured like that in other websites. Maybe it could be possible to fix it just avoiding to check that value for specific countries.

github-actions[bot] commented 1 week ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

pierorocca commented 1 week ago

@bborman22 with ECE do we have a way of working around this?