UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

28 lines 825 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SipayResource = void 0; class SipayResource { constructor(client) { this.client = client; } async request(method, url, data, options) { return this.client.request(method, url, data, options); } async get(url, params, options) { return this.client.get(url, params, options); } async post(url, data, options) { return this.client.post(url, data, options); } async postForm(url, data, options) { return this.client.postForm(url, data, options); } addMerchantKey(data) { return { ...data, merchant_key: this.client['config'].merchantKey, }; } } exports.SipayResource = SipayResource; //# sourceMappingURL=base.js.map