@fenil265/fundly-payment-sdk
Version:
Fundly Payment SDK for seamless integration with Fundly Pay systems.
9 lines • 548 B
TypeScript
/**
* Custom hook for polling transaction status until completion.
* @param transactionId string - ID of the transaction to track.
* @param onSuccess callback - Triggered when payment succeeds.
* @param onFailure callback - Triggered when payment fails.
* @param intervalMs number - Polling interval in ms.
*/
export declare function useTransactionPolling(transactionId: string | null, onPaymentCollected?: (data?: any) => void, onFailure?: (data?: any) => void, intervalMs?: number): void;
//# sourceMappingURL=useTransactionPolling.d.ts.map