Set the type attribute to either cc-number, cc-exp, or cc-cvc. Kwes will automatically detect that field and format it as credit card fields.
type
cc-number
cc-exp
cc-cvc