UNPKG

react-isw-webpay

Version:

React integration for Interswitch WebPay payment gateway

13 lines (12 loc) 417 B
interface UseWebPayScriptReturn { isLoaded: boolean; isLoading: boolean; error: string | null; loadScript: (mode?: 'LIVE' | 'TEST', customUrl?: string) => Promise<void>; } /** * Loads the WebPay script based on mode or custom URL. * Usage: loadScript('LIVE') or loadScript('TEST') or loadScript(undefined, customUrl) */ export declare const useWebPayScript: () => UseWebPayScriptReturn; export {};