UNPKG

pesapal-node-sdk

Version:

Node.js SDK for integrating with Pesapal payment gateway. Provides a simple interface for processing payments, checking status, and handling callbacks.

16 lines 820 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.paymentService = void 0; const config_1 = __importDefault(require("./config/config")); const HttpClient_1 = require("./services/HttpClient"); const AuthService_1 = require("./services/AuthService"); const PaymentService_1 = require("./services/PaymentService"); const config = (0, config_1.default)(); const httpClient = new HttpClient_1.HttpClient(config); const authService = new AuthService_1.AuthService(httpClient, config); const paymentService = new PaymentService_1.PaymentService(authService, httpClient, config); exports.paymentService = paymentService; //# sourceMappingURL=index.js.map