taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 74e46857a714c345691d303a7ebfafca3b29cbee
parent abc9a0f9304ef6ef541c3ef13769781474fdf1bb
Author: Florian Dold <dold@taler.net>
Date:   Mon,  7 Sep 2026 14:25:11 +0200

taler-harness: register the debtor account for KYC authentication

Create the deposit destination before sending the KYC-auth transfer.
Libeufin requires its debtor account to exist, whereas Fakebank accepted
the previously fabricated payto URI. Keep this account separate from the
first wallet withdrawal account to preserve the authentication scenario.

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-kyc-deposit-kycauth.ts | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/packages/taler-harness/src/integrationtests/test-kyc-deposit-kycauth.ts b/packages/taler-harness/src/integrationtests/test-kyc-deposit-kycauth.ts @@ -34,6 +34,7 @@ export async function runKycDepositKycauthTest(t: GlobalTestState) { walletClient: w0, exchange, bank, + bankClient, exchangeBankAccount, amlKeypair, } = await createKycTestkudosEnvironmentFull(t, { adjustExchangeConfig }); @@ -107,11 +108,21 @@ export async function runKycDepositKycauthTest(t: GlobalTestState) { }, }); + // KYC-auth must originate from a real account distinct from the account + // used for the first wallet's withdrawal. + const depositPaytoUri = getTestHarnessPaytoForLabel("foo"); + await bankClient.registerAccountExtended({ + name: "foo", + username: "foo", + password: "foo-password", + payto_uri: depositPaytoUri, + }); + const deposit = await w1.walletClient.call( WalletApiOperation.CreateDepositGroup, { amount: "TESTKUDOS:10" as AmountString, - depositPaytoUri: getTestHarnessPaytoForLabel("foo"), + depositPaytoUri, }, );