felquis / react-credit-cards-2

Beautiful credit cards for your payment forms - community edition ⚡️
https://ovvwzkzry9.codesandbox.io/
MIT License
62 stars 9 forks source link

No way to add zip code as a field inside of the component #16

Open AustinMKerr opened 1 year ago

SeanCassiere commented 1 year ago

@AustinMKerr the zip code is not a field/value that is printed on a physical card.

Accordingly, as this UI library outputs a component that looks like a Credit Card, there wouldn't logically be a place for the zip code to be placed, since it is not printed on them.

Should you wish to collect the zip code, you explore the options below.

Typically, since the zip code is taken for online payments, it would be better to place the input for it alongside the credit card information, or alongside the fields that capture the customer's billing address.

Below is an image of an app I've got running in production that has the zip code field at the bottom of the form. image

Also, alternatively, as I mentioned above you could have a separate form that captures your customer's billing details, and get the zip code from here. image

samie105 commented 2 months ago

is there a way i can print another value on the card, like an entirely different field asides the defaults