aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-core/src/withdraw.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
index dc27d61d2..087db7938 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -1105,6 +1105,10 @@ enum ExchangeAmlStatus {
Frozen = 2,
}
+/**
+ * Transition a transaction from pending(ready)
+ * into a pending(kyc|aml) state, in case KYC is required.
+ */
async function handleKycRequired(
wex: WalletExecutionContext,
withdrawalGroup: WithdrawalGroupRecord,
@@ -1129,6 +1133,7 @@ async function handleKycRequired(
exchangeUrl,
);
logger.info(`kyc url ${url.href}`);
+ // We do not longpoll here, as this is the initial request to get information about the KYC.
const kycStatusRes = await wex.http.fetch(url.href, {
method: "GET",
cancellationToken: wex.cancellationToken,