@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.
37 lines (36 loc) • 848 B
TypeScript
export type SpotflowProps = {
rdtCode?: string;
merchantKey: string;
encryptionKey: string;
planId: string;
regionId?: string;
email: string;
name?: string;
phoneNumber?: string;
code: string;
amount?: number;
currency?: string;
onSuccess?: (_val?: any) => void;
onClose?: () => void;
reference?: string;
onTransferConfirmationPending?: (_val?: any) => void;
callBackUrl?: string;
metadata?: Record<string, unknown>;
localCurrency?: string;
url?: string;
mode?: "test" | "live";
countryCode?: string;
};
export type RegionDetail = {
name: string;
dialCode: string;
length: string;
cardTypes: string[];
allowsZeros: boolean;
icon: string;
};
export type CustomerDetails = {
email: string;
name?: string;
phoneNumber?: string;
};