nathanstitt / react-braintree-fields

React components for Braintree hosted fields
https://nathanstitt.github.io/react-braintree-fields/
MIT License
39 stars 25 forks source link

Hide cvv #37

Closed gowgow1 closed 2 years ago

gowgow1 commented 2 years ago

Hi, I'm writting you to say that we haven't any way to hide cvv and add some inputMask . like that has default braintree fields. image could you provide me some information how to do it. thank you for future.

nathanstitt commented 2 years ago

Hi @gowgow1 to hide the CVV you could just not render the field. As for the maskInput option, I just added a new options property and an example of using it here: https://github.com/nathanstitt/react-braintree-fields/blob/main/demo/demo-class.jsx#L112

This is released as version 1.8.0

Hope this works well for you

gowgow1 commented 2 years ago

thanks a lot, that suits for our needs, great job!