UNPKG

react-isw-webpay

Version:

React integration for Interswitch WebPay payment gateway

25 lines (24 loc) 683 B
import React from 'react'; import { WebPayHookOptions } from '.'; import { WebPayModalState } from '../hooks'; export interface WebPayModalProps { isOpen: boolean; onClose: () => void; paymentRequest: PaymentRequest; options?: WebPayHookOptions; children?: (state: WebPayModalState) => React.ReactNode; title?: string; loadingText?: string; LoadingComponent?: React.ComponentType<{ text: string; }>; ErrorComponent?: React.ComponentType<{ error: string; onRetry: () => void; onCancel: () => void; }>; HeaderComponent?: React.ComponentType<{ title: string; onClose: () => void; }>; }