stripe-android
stripe-android copied to clipboard
[BUG] CardFormView - Premature error messages
Summary
After attempting to generate payment method params in the form with invalid details, error messages are showing up for fields that have not been edited yet.
Code to reproduce
This is an oversimplification but the point is that we are only trying to generate payment method params in this case
params = StripePaymentMethodParams.create(card, billingDetails, metadata)
Dependency Versions
stripe-android: 20.25.5
SDK classes
CardFormView PaymentMethodCreateParams
Video
https://github.com/stripe/stripe-android/assets/128185789/ebf63526-1f65-4756-a266-295520107fff
Hi @dowdy-olo, this is expected behavior. You can avoid this by disabling the submit button until the form is filled out.