UNPKG

react-squadpay

Version:
40 lines (30 loc) 951 B
declare module "react-squadpay"{ interface Metadata { [key: string]: any } type PaymentChannelsType = 'card'| 'bank' | 'ussd'|'bank_transfer'; type CurrencyType = "NGN" | "USD" export interface SquadParams { key: string, email: string, amount: number, currencyCode: CurrencyType | string | null, metaData?: Metadata | null, passCharge?: boolean | null, callbackUrl?: string | null, customerName?: string | null, reference?: string | null, paymentChannels?: PaymentChannelsType[] | null } export interface SquadPayProps { className?: string, text?: string, children?: any, params: SquadParams, onClose?(): void onLoad?(): void, onSuccess?(data: any): void } declare function SquadPay(props: SquadPayProps); export default SquadPay; }