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
Android CardField getting invalid card details #817
Comments
I can reproduce this. @jonasbark you have a bit more knowledge about the cardfield internals. It looks like last4 is not updated the first time but when I put the focus back on the cardnumber remove one number and add it again last4 is filled. I did print from android And got: ``` E/details (24573): details!!! {brand=null, last4=null, expiryMonth=2, expiryYear=25, postalCode=, validNumber=Valid, validCVC=Valid, validExpiryDate=Valid}
|
Same issue. Well, yeah, it's quite critical. The whole android user base seems to be affected. Is it something that was brought in by new releases? What is the latest workable version then?
This workaround doesn't work for me. |
As a temporary workaround, I was able to get the widget into a working state by setting the 'enablePostalCode' variable to true. It's not ideal but at least it's functional now. |
Thanks will know. I downgraded the plugin to 3.1.0. It seems to work there. Right now uploading my build to Google Play to have the fix asap. |
Opened a ticket accordingly stripe/stripe-react-native#1041 |
@romatallinn @DavidI7 @142hitesh can you confirm that it works if you have enablePostalCode to false and no countryCode?
seems to work for me that way. @remonh87 let's remove sending the countryCode from the dart side, if enablePostalCode is false |
Hm, no, I cannot confirm it. The example you provided doesn't work for me. But setting |
device-2022-07-15-153005.mp4This is what I'm seeing with the example app, flutter_stripe 3.3.0, and the snippet from above. Looks fine to me. |
Hi, facing the same issue. The only workaround is what @DavidI7 posted (setting |
@jonasbark Same for me, as @romatallinn already said, that potential fix you provided didn't work for me either. We're on flutter_stripe 3.3.0 too, for the record. |
Can you post a video with the example app, using the code from my snippet? |
A fix will be released with the next version that should arrive within the next few days |
Can anyone confirm this is fixed with 4.0.0? Thanks! |
Well, just wanted to drop a message that for my production app, it become even worse. Even But it’s just me… I didn’t have a chance to test it on basic setup, coz right now downgrading the plugin to 3.3.0 and deploying to Google Play, so to have at least some working version of it. Will try to test it on basic app later today, but if anyone is experiencing same issue or can test it earlier, please do it. |
@romatallinn Thanks for the reply! We're aiming for an urgent hotfix. Can you describe how 4.0.0 is worse? |
The card field accepts the card just fine now. Previously, the icon was becoming a ❗️. But instead, it now fails on card submission. Same error, card details not completed. And as said, worth mentioning though, we are working with setup intents. So it might be different for other strategies. |
@romatallinn Thank you! Sounds like 4.0.0 is not our solution. @jonasbark Could you prioritize this? It's a very, very problematic bug. |
Do you have an opportunity to test it now as well? Maybe it’s just me. |
@romatallinn We could potentially do that, yes. It's a little late before the weekend, so no promises, but I'll get back to you if our QA'ers find time to test 4.0.0. But I'm currently leaning towards trying to downgrade to 3.1.0. |
@joknjokn okay, don't rely on anything I am saying. I downgraded to 3.3.0 and it also doesn't work for me the same. Probably I am having some other issue. |
@romatallinn Yep - our QA'er tested with 4.0.0 and it does seem to be fixed 👍 |
Correct, it is NOT fixed in 4.0.0. I am using the CardFormField. The only way it works is if I enable postalCode. |
@sleewok I can't confirm that. Please provide an example project where I can see that it does not work. Looks like you still use the old version, so better double-check. |
@jonasbark I think I need to clarify something. My error may be different. However, the form is never marked as completed UNLESS I set postalCode = true and a postalCode is entered along with the other information (CC, CVC, EXP). This is the case even if I have set postalCode = false. It will never complete because there is no way to enter the postalCode. If there is a way programmatically please let me know and I will gladly use that. This is what the formDetails are with the postalCode = false and the CC, CVC, EXP all entered correctly: If I set postalCode = true, and enter the postal code the result changes (once all information is entered) and is marked as complete as soon as I complete all the fields. It will set complete to false if I delete the CVC, etc, just as expected: I'd rather not have the user enter the postal in the form, since I collect address information prior to the CC entry. |
It seems to be different depending on the device. I testet the package v3.3.0 on a Redmi Note 11 (Android 11 - working) and on Samsung M33 5G (Android 12 - not working). |
Describe the bug
While adding card details in CardField in android getting Invalid card details even it's correct on onCardChanged. Also not getting last4 it's returning null.
Note : Same things working in iOS.
CardFieldInputDetails(complete: true, last4: null, expiryMonth: 5, expiryYear: 23, postalCode: null, brand: null, number: null, cvc: null, validExpiryDate: CardValidationState.Valid, validCVC: CardValidationState.Valid, validNumber: CardValidationState.Valid)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should allow the card when all details are correct.
Smartphone / tablet
The text was updated successfully, but these errors were encountered: