np-payment-sdk
Version:
Unified Payment SDK for Nepal (eSewa, Khalti, ConnectIPS, IME Pay, Mobile Banking)
21 lines (20 loc) • 543 B
TypeScript
import { PaymentParams, PaymentResult } from '../types';
export interface EsewaConfig {
clientId: string;
secret: string;
baseUrl?: string;
}
export declare class EsewaGateway {
private config;
private baseUrl;
constructor(config: EsewaConfig);
pay(params: PaymentParams): Promise<PaymentResult>;
verify(params: {
transactionId: string;
amount: number;
}): Promise<PaymentResult>;
refund(params: {
transactionId: string;
amount: number;
}): Promise<PaymentResult>;
}