Skip to main content

Interface: PaymentFormConfig

Properties​

cvvElementId​

cvvElementId: string

DOM element ID where the CVV field will be mounted


cvvFieldType?​

optional cvvFieldType?: any

Field type for the CVV field, defaults to 'number'


cvvLabel?​

optional cvvLabel?: string

Label for the CVV field, defaults to 'CVV'


cvvPlaceholder?​

optional cvvPlaceholder?: string

Placeholder text for CVV field, default is empty string


numberElementId​

numberElementId: string

DOM element ID where the card number field will be mounted


numberFieldType?​

optional numberFieldType?: any

Field type for the card number field, defaults to 'number'


numberFormat?​

optional numberFormat?: "plainFormat" | "prettyFormat" | "maskedFormat"

Format for card number and CVV display 'plainFormat' - default (no formatting) 'prettyFormat' - adds spaces between groups of 4 digits, requires numberFieldType to be 'text' or 'tel' 'maskedFormat' - masked via '*' no spaces, forces numberFieldType to 'text'


numberLabel?​

optional numberLabel?: string

Label for the card number field, defaults to 'Card Number'


numberPlaceholder?​

optional numberPlaceholder?: string

Placeholder text for card number field, default is empty string


styles?​

optional styles?: string

Optional css styles for the hosted fields (number and cvv)