UNPKG

np-payment-sdk

Version:

Unified Payment SDK for Nepal (eSewa, Khalti, ConnectIPS, IME Pay, Mobile Banking)

18 lines (17 loc) 480 B
import { PaymentParams, PaymentResult } from '../types'; export interface KhaltiConfig { publicKey: string; secretKey: string; baseUrl?: string; } export declare class KhaltiGateway { private config; private baseUrl; constructor(config: KhaltiConfig); pay(params: PaymentParams): Promise<PaymentResult>; verify(params: { transactionId: string; amount: number; }): Promise<PaymentResult>; refund(): Promise<PaymentResult>; }