UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

21 lines 989 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Cashout = void 0; const base_1 = require("./base"); class Cashout extends base_1.SipayResource { /** * Initiate a cashout to bank account * Note: This endpoint requires Bearer token authentication and uses a different request structure * Hash generation format is not documented in the API spec - requires investigation */ async toBank(cashoutData, options) { const data = this.addMerchantKey(cashoutData); // TODO: Implement hash generation for cashout endpoint // The API spec shows hash_key is required but doesn't provide hash generation examples // Hash format needs to be determined - possibly based on merchant_key + invoice_id + amount data.hash_key = 'TODO_IMPLEMENT_CASHOUT_HASH_GENERATION'; return this.post('/api/cashout/tobank', data, options); } } exports.Cashout = Cashout; //# sourceMappingURL=cashout.js.map