stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

[BUG] CardFormView - Premature error messages

Open dowdy-olo opened this issue 2 years ago • 1 comments

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

dowdy-olo avatar Oct 31 '23 19:10 dowdy-olo

Hi @dowdy-olo, this is expected behavior. You can avoid this by disabling the submit button until the form is filled out.

jaynewstrom-stripe avatar Oct 31 '23 19:10 jaynewstrom-stripe