UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

24 lines 684 B
export 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, }; } } //# sourceMappingURL=base.js.map