UNPKG

paystack-pay

Version:
23 lines 832 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Paystack = void 0; const axios_1 = __importDefault(require("axios")); const transaction_1 = __importDefault(require("./transaction")); const baseUrl = 'https://api.paystack.co/'; class Paystack { constructor(secretKey) { this.secretKey = secretKey; this.paystackClient = axios_1.default.create({ baseURL: `${baseUrl}`, headers: { Authorization: `Bearer ${this.secretKey}`, }, }); this.transaction = new transaction_1.default(this.paystackClient); } } exports.Paystack = Paystack; //# sourceMappingURL=paystack.js.map