UNPKG

esewa-react

Version:

A React library for integrating eSewa payment gateway into your React applications. This library handles hash signatures, base64 URL encoding, and provides a simple interface for initiating and verifying eSewa payments.

7 lines (6 loc) 229 B
import { EsewaConfig, EsewaPaymentData } from './esewa'; export declare function useEsewa(config: EsewaConfig): { initiatePayment: (data: EsewaPaymentData) => Promise<void>; loading: boolean; error: string | null; };