CardInputConfig
interface CardInputConfig {
fieldType?: { number?: 'number' | 'text' | 'tel'; cvv?: 'number' | 'text' | 'tel' };
numberFormat?: 'prettyFormat' | 'plainFormat' | 'maskedFormat';
labels?: { number?: string; cvv?: string };
titles?: { number?: string; cvv?: string };
placeholders?: { number?: string; cvv?: string };
styles?: { number?: string; cvv?: string; placeholder?: string };
nonce?: string;
timestamp?: string;
certificateToken?: string;
signature?: string;
fraud?: boolean | { siteId: string };
enableAutoComplete?: boolean;
requiredAttributes?: { number?: boolean; cvv?: boolean };
allowBlankName?: boolean;
allowExpiredDate?: boolean;
}Source: global.ts:1635
Configuration for the hosted (iFrame-based) credit-card input fields — keyboard type, formatting, labels, styling, and the security tokens required to authenticate the fields. Previously named SpreedlyConfig; SpreedlyConfig remains as an alias.
Properties
fieldType: { number?: 'number' | 'text' | 'tel'; cvv?: 'number' | 'text' | 'tel' }
Properties
number("number" | "text" | "tel", optional)cvv("number" | "text" | "tel", optional)
numberFormat: 'prettyFormat' | 'plainFormat' | 'maskedFormat'
labels: { number?: string; cvv?: string }
Properties
number(string, optional)cvv(string, optional)
titles: { number?: string; cvv?: string }
Properties
number(string, optional)cvv(string, optional)
placeholders: { number?: string; cvv?: string }
Properties
number(string, optional)cvv(string, optional)
styles: { number?: string; cvv?: string; placeholder?: string }
Properties
number(string, optional)cvv(string, optional)placeholder(string, optional)
nonce: string
timestamp: string
certificateToken: string
signature: string
fraud: boolean | { siteId: string }
enableAutoComplete: boolean
requiredAttributes: { number?: boolean; cvv?: boolean }
Properties
number(boolean, optional)cvv(boolean, optional)