UNPKG

react-isw-webpay

Version:

React integration for Interswitch WebPay payment gateway

17 lines (16 loc) 539 B
import { WebPayHookOptions, PaymentRequest } from '../types'; export interface WebPayModalState { isLoading: boolean; error: string | null; hasInitiated: boolean; initiatePayment: () => void; reset: () => void; close: () => void; } export interface UseWebPayModalProps { isOpen: boolean; onClose: () => void; paymentRequest: PaymentRequest; options?: WebPayHookOptions; } export declare const useWebPayModal: ({ isOpen, onClose, paymentRequest, options, }: UseWebPayModalProps) => WebPayModalState;