medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
401 stars 63 forks source link

Override Formik Field Names #28

Open dabyland opened 4 years ago

dabyland commented 4 years ago

Issue After going through the code, it doesn't appear that the ability to override the name of a Formik field is provided (see here). It appears to be hardcoded to specific values regardless of the name prop that usually controls that mapped value.

Proposal Allow users to override the name of any Formik Field

Example: <Field id="myCustomCardNumber" name="myCustomCardNumber"> {({ field }) => <input {...getCardNumberProps({ onBlur: field.onBlur, onChange: field.onChange})} />}</Field>

dabyland commented 2 years ago

So it's been 2 years, is it safe to assume this repo is no longer active and being maintained?