Function useCreditCardNumberFormControl
- useCreditCardNumberFormControl(formControlName?, control?): {
creditCardFormControl: undefined | FormControlBase<StandardTextFieldProps>;
error: string;
inputRef: RefObject<HTMLInputElement>;
type:
| "visa"
| "mastercard"
| "amex"
| "discover";
value: ValidControlValue;
} Parameters
OptionalformControlName: stringOptionalcontrol: (new () => FormControlBase<StandardTextFieldProps>)
Returns {
creditCardFormControl: undefined | FormControlBase<StandardTextFieldProps>;
error: string;
inputRef: RefObject<HTMLInputElement>;
type:
| "visa"
| "mastercard"
| "amex"
| "discover";
value: ValidControlValue;
}
creditCardFormControl: undefined | FormControlBase<StandardTextFieldProps>
error: string
inputRef: RefObject<HTMLInputElement>
type:
| "visa"
| "mastercard"
| "amex"
| "discover"