diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 8221abea6..0817be472 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -731,6 +731,7 @@ interface WithdrawalBatchResult { coinIdxs: number[]; batchResp: ExchangeWithdrawBatchResponse; } + enum AmlStatus { normal = 0, pending = 1, @@ -999,7 +1000,10 @@ async function processPlanchetExchangeBatchRequest( ).href; try { - const resp = await ws.http.postJson(reqUrl, batchReq); + const resp = await ws.http.fetch(reqUrl, { + method: "PATCH", + body: batchReq, + }); if (resp.status === HttpStatusCode.UnavailableForLegalReasons) { await handleKycRequired(ws, withdrawalGroup, resp, 0, requestCoinIdxs); return { @@ -1583,7 +1587,7 @@ async function processWithdrawalGroupPendingReady( work = []; for (let j = 0; j < resp.coinIdxs.length; j++) { if (!resp.batchResp.ev_sigs[j]) { - //response may not be available when there is kyc needed + // response may not be available when there is kyc needed continue; } work.push( |