UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

17 lines 865 B
import { SipayResource } from './base'; export class Cashout extends 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); } } //# sourceMappingURL=cashout.js.map