-
Notifications
You must be signed in to change notification settings - Fork 266
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
Add option to disable country and postal code inputs in CardForm component #577
Comments
@kevinhuang78 unfortunately CardForm doesn't support disabling particular fields atm, I will keep this issue open in order to track progress regarding this |
At this point in the payment flow, we already asked the customer for their billing address, so asking again for country and zip code is redundant and make us look unprofessional and/or less competent. If fields cannot be disabled at least we should be able to pre fill them. Can we do that? I didn't find any way to do it. Thank you! |
@arekkubaczkowski zip code on android have only United States and United Kingdom. Other countries - the form hides the zip code field. On the other hand, IOS has postal code for many of countries. I assume you have used postal code then how do you handle it? |
@kevinhuang78 |
+1 |
Hi, same for me, I don't need to ask user for country and zip, any solution ? |
Same here |
It will resolve this issue as well. |
Context
I've updated
@stripe/stripe-react-native
package to v.0.2.0 in order to useCardForm
component so that I can use a multi-line form instead of having it on one line.Issue
I can't remove postal code input and country input.
I can see on the source code here that unlike
CardField
component, I cannot putpostalCodeEnabled
tofalse
. Plus I can't see where to remove country field.I saw that on line 79, you're doing
...props
but even though I'm puttingpostalCodeEnabled
tofalse
it's not workingCode I'm using
Solution I'd liked
Have the possibility to remove postal code input and country input.
Thanks a lot for taking your time answering my issue
The text was updated successfully, but these errors were encountered: