medipass/react-payment-inputs

Card number - support setting the input type

Closed this issue · 1 comments

Hi,
In order to support setting the input type, it only required to change the type prop of getCardNumberProps (ln 159):

type: props.type || 'tel',

and then it can be configured like this:

{...getCardNumberProps({ onChange: handleChangeCardNumber, type: "password" })}

Can you provide me a contributing permission please?
Thanks

I've opened a PR for that - #66