Interface: PaymentFormConfig
Properties
cvvElementId
cvvElementId:
string
DOM element ID where the CVV field will be mounted
cvvFieldType?
optionalcvvFieldType:SpreedlyFieldType
Field type for the CVV field, defaults to 'number'
cvvLabel?
optionalcvvLabel:string
Label for the CVV field, defaults to 'CVV'
cvvPlaceholder?
optionalcvvPlaceholder: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?
optionalnumberFieldType:SpreedlyFieldType
Field type for the card number field, defaults to 'number'
numberFormat?
optionalnumberFormat:"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?
optionalnumberLabel:string
Label for the card number field, defaults to 'Card Number'
numberPlaceholder?
optionalnumberPlaceholder:string
Placeholder text for card number field, default is empty string
styles?
optionalstyles:string
Optional css styles for the hosted fields (number and cvv)