Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] CardFormView - Premature error messages #7551

Open
dowdy-olo opened this issue Oct 31, 2023 · 1 comment
Open

[BUG] CardFormView - Premature error messages #7551

dowdy-olo opened this issue Oct 31, 2023 · 1 comment
Labels

Comments

@dowdy-olo
Copy link

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

Screen.Recording.2023-10-31.at.12.30.12.PM.mov
@dowdy-olo dowdy-olo added the bug label Oct 31, 2023
@jaynewstrom-stripe
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants