juspay / hyperswitch-web

Hyperswitch Web SDK: A Rescript powered React library for seamless payment integration and customization.
https://hyperswitch.io/
Apache License 2.0
53 stars 59 forks source link

fix: card input error text correction #759

Closed aritro2002 closed 3 weeks ago

aritro2002 commented 1 month ago

Type of Change

Description

The error message for an incorrect card number is not displaying accurately. Additionally, the error message does not disappear when the input field is focused.

Before:

https://github.com/user-attachments/assets/a74e275d-c0c9-4682-ad02-74c97dce6d2c

After:

https://github.com/user-attachments/assets/4a59e7d6-d1d1-4194-880c-6c92887a1484

How did you test it?

Tested via rendering the SDK in firefox ,safari and chrome

Checklist

semanticdiff-com[bot] commented 1 month ago

Review changes with  SemanticDiff

aritro2002 commented 3 weeks ago

I have added locale support for 'Please enter a valid card number' validation message using google translate.