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
Card details not complete Exception on Android #382
Comments
Can you check if you can reproduce this as well on the example application from this repository? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
i was able to fix this error. It was still there after updating the package version to 2.0.0 and updating flutter to 2.5.2 |
Describe the bug
Stripe.instance.createPaymentMethod() throws a StripeException "Card details not complete" on Android while it not doing so on iOS.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Function should return a valid PaymentMethod.
Smartphone / tablet
Additional context
The weird thing about this Exception is, that the code I am using is working on iOS devices, only when I try to use a card on an android device it is not working. So im would say this is not about the chosen card / Zip / billing details I am providing to the function. I am aware of the fact that the android app needs special configuration, but I took care of all of that:
we also tried using the CardFormField, but it is throwing the same exception.
I also have an controller attached to the CardField, when debugging it shows that right before createPaymentMethod is called, the complete attribute of the controller is set to true and all other attributes are set (except cvc and number, these are set to null, but there are also set to null on iOS, so I think this is normal ?)
When using the CardField Widget, there was one Warning in the logs which was interesting to me:
WARNING! Initial card data value has been ignored.
Handling card data manually will break PCI compliance provided by Stripe. Please make sure you understand the severe consecuences of it. https://stripe.com/docs/security/guide#validating-pci-compliance.
To handle PCI compliance yourself and allow to edit card data programatically,set
dangerouslyGetFullCardDetails: true
I can’t really make sense of it since we did not change a already used card, the Stripe user we were using did not have any saved Payment Methods / cards. Also, the CardField was compltely empty from the beginning and the dangerouslyGetFullCardDetails and dangerouslyGetFullCardDetails are both set to false.
You would really help us if you could share any idea on what could be causing this problem.
Thank you.
The text was updated successfully, but these errors were encountered: