UNPKG

np-payment-sdk

Version:

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

38 lines (37 loc) 1.16 kB
import { IPaymentGateway, PaymentParams, PaymentResult, VerifyParams, RefundParams, SubscriptionResult, InvoiceResult, WalletResult } from '../types/gateway'; /** * Flutterwave payment gateway implementation (real) */ export declare class FlutterwaveGateway implements IPaymentGateway { private config; private flw; constructor(config: { publicKey: string; secretKey: string; encryptionKey: string; }); /** * Initiate a payment (card charge) */ pay(params: PaymentParams): Promise<PaymentResult>; /** * Verify a payment */ verify(params: VerifyParams): Promise<PaymentResult>; /** * Refund a payment */ refund(params: RefundParams): Promise<PaymentResult>; /** * Create a subscription (not implemented) */ subscribe(_params?: Record<string, unknown>): Promise<SubscriptionResult>; /** * Create an invoice (not implemented) */ createInvoice(_params?: Record<string, unknown>): Promise<InvoiceResult>; /** * Wallet operations (not supported) */ wallet(_params?: Record<string, unknown>): Promise<WalletResult>; }