np-payment-sdk
Version:
Unified Payment SDK for Nepal (eSewa, Khalti, ConnectIPS, IME Pay, Mobile Banking)
11 lines (10 loc) • 513 B
TypeScript
import { PaymentResult } from '../types';
export interface TransactionRecord extends PaymentResult {
transactionId: string;
createdAt: Date;
updatedAt: Date;
}
export declare function addTransaction(record: TransactionRecord): void;
export declare function updateTransaction(transactionId: string, updates: Partial<TransactionRecord>): void;
export declare function getTransaction(transactionId: string): TransactionRecord | undefined;
export declare function listTransactions(): TransactionRecord[];