UNPKG

np-payment-sdk

Version:

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

36 lines (35 loc) 1.11 kB
import { IPaymentGateway, PaymentParams, PaymentResult, VerifyParams, RefundParams, SubscriptionResult, InvoiceResult, WalletResult } from '../types/gateway'; /** * Paystack payment gateway implementation (real) */ export declare class PaystackGateway implements IPaymentGateway { private config; private paystack; constructor(config: { secretKey: string; }); /** * Initiate a payment (initialize transaction) */ 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>; }