@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.
26 lines (25 loc) • 669 B
TypeScript
type ContactDetails = {
address: string;
country: string;
city: string;
code?: string;
state: string;
};
type Props = {
onAction: (_evt: Event) => (_val: ContactDetails) => void;
container: HTMLDivElement;
};
export declare class AvsValidationForm {
container: HTMLDivElement;
private onAction;
contactDetails: ContactDetails;
private countries;
private states;
constructor(props: Props);
attachListeners(): void;
handleInputChange(event: Event, button: HTMLButtonElement | null, stateInput?: HTMLSelectElement): void;
private validateCard;
renderComponent(): void;
render(): string;
}
export {};