UNPKG

@spot-flow/checkout-inline-js

Version:

This project is an inline library that enables users to make payments seamlessly. It integrates smoothly into your application, providing a streamlined checkout experience.

30 lines (28 loc) 866 B
import { CardDetailValueType } from '../../types/types'; type Props = { container: HTMLDivElement; onAction: (_evt: Event) => (_values: CardDetailValueType) => void; merchantName: string; currency: string; }; export declare class CardDetailForm { container: HTMLElement | Element; private onAction; private cardDetailsValues; private creditCardTypes; private merchantName; private currency; constructor(props: Props); attachListener(): void; validateCreditCard(cardNumber: string): boolean; handleInputChange(event: Event, button: HTMLButtonElement | null): void; private hideCardHolderInput; private validateCard; private displayCardTypes; private filterCreditCardType; private emptyCardState; private checkInputValidity; renderContent(): void; render(): string; } export {};