UNPKG

np-payment-sdk

Version:

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

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