qivopay-sdk
Version:
SDK de pagamentos com MercadoPago e PagarMe
28 lines (25 loc) • 525 B
text/typescript
export type FieldConfig = {
id: string
name: string
}
export type FormFieldMap = {
number: FieldConfig
holderName: FieldConfig
expMonth: FieldConfig
expYear: FieldConfig
cvv: FieldConfig
installments: FieldConfig
issuer: FieldConfig
}
export type GenerateFormParams = {
containerId: string
buttonText?: string
fieldMap?: Partial<FormFieldMap>
styleOverrides?: {
form?: string
input?: string
select?: string
button?: string
}
installments?: { label: string; value: number }[]
}