stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.12k stars 981 forks source link

Inconsistent behaviour regarding postal code validation on iOS and Android #2817

Open remonh87 opened 1 year ago

remonh87 commented 1 year ago

Describe the bug Payment was made with an incorrect postal code format for Canada on the paymentsheet.

To Reproduce Steps to reproduce the behavior:

Click the «Pay» button Enter «Test» on the Name field Enter «4242424242424242» on the Card number field Enter «12/24» Enter «242» CVC Choose Canada Country Enter «XYZ» on the Postal code Expected behavior Payment declined. An error is displayed

Smartphone / tablet

Device: iPhone X OS: iOS 16.6 Package version: 9.2.2 Flutter version 3.10.5

On Android we get a payment declined

charliecruzan-stripe commented 1 year ago

Transferring from the stripe-react-native repo: this correlates to v23.12.0 (most recent version)

davidme-stripe commented 1 year ago

Thanks for filing this. We only validate ZIP codes in the US at the moment, but we'll add support for Canadian postal codes to match Android's behavior.