UNPKG

np-payment-sdk

Version:

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

23 lines (22 loc) 859 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IMEPayGateway = void 0; class IMEPayGateway { constructor(config) { this.config = config; this.baseUrl = config.baseUrl || 'https://staging.imepay.com.np'; } async pay(params) { // TODO: Implement IME Pay payment logic return { gateway: 'imepay', status: 'success', params, message: 'Payment initiated (mock)' }; } async verify(params) { // TODO: Implement IME Pay verification logic return { gateway: 'imepay', status: 'success', params, message: 'Payment verified (mock)' }; } async refund(params) { // TODO: Implement IME Pay refund logic return { gateway: 'imepay', status: 'success', params, message: 'Refund processed (mock)' }; } } exports.IMEPayGateway = IMEPayGateway;