stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

CardField doesn’t infer country from card

Open saf94 opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. On the card field in the JS library, if you put a card number in it can tell what country it’s from and tailor the rest of the form based on that. Ie if the card is from the UK it asks for post code, if from US it asks for numerical zip code. However the React Native library doesn’t seem to do that and only ever shows the zip code even if my card is UK based.

Describe the solution you'd like If the card is based in the UK it should ask for post code and the keyboard should show the letters input (right now it changes to numerical input on the zip code part)

Describe alternatives you've considered Using the card form although it’s a bit inconvenient as most or almost all of our customers will be uk based so I would like a field which acknowledges that automatically without the user having to manually choose the country

Additional context

saf94 avatar Mar 13 '22 12:03 saf94