stripe / stripe-ios

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

[CONSUMERBANK-528] Handle invalid phone numbers in Link signup more gracefully #4269

Open mats-stripe opened 2 weeks ago

mats-stripe commented 2 weeks ago

Summary

This updates the Link Login pane to more gracefully handle errors related to the phone number. Previously, we had very little input validation on the phone textfield, and any API errors related to an improperly formatted phone number would lead to the terminal error pane. This attempts to catch phone number related API errors, and present them under the phone textfield.

Motivation

CONSUMERBANK-528

Testing

https://github.com/user-attachments/assets/6d038299-6abd-410a-8095-27fe18b0f9c4

Changelog

N/a