diff options
author | Florian Dold <florian@dold.me> | 2024-06-26 17:32:22 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-26 17:45:59 +0200 |
commit | cee43a6fc5329e048ac49308d0dcecbdb263bb72 (patch) | |
tree | 8feec3781bc2dc48ccd1b7f77430191c113bcaa0 /packages | |
parent | 671e62d4a539a74e046c957a4d5c3585eed17cc9 (diff) | |
download | wallet-core-cee43a6fc5329e048ac49308d0dcecbdb263bb72.tar.xz |
-comment
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/withdraw.ts | 5 |
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, |