diff options
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts index ff589dd79..561a10e6d 100644 --- a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts +++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts @@ -17,7 +17,11 @@ /** * Imports. */ -import { BankApi, WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { + BankApi, + WalletApiOperation, + WireGatewayApiClient, +} from "@gnu-taler/taler-wallet-core"; import { defaultCoinConfig } from "../harness/denomStructures.js"; import { getWireMethodForTest, @@ -158,10 +162,15 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) { exchangeBankAccount.accountPaytoUri, ); - await BankApi.adminAddIncoming(bank, { + const wireGatewayApiClient = new WireGatewayApiClient({ + wireGatewayApiBaseUrl: exchangeBankAccount.wireGatewayApiBaseUrl, + accountName: exchangeBankAccount.accountName, + accountPassword: exchangeBankAccount.accountPassword, + }); + + await wireGatewayApiClient.adminAddIncoming({ amount: "TESTKUDOS:10", debitAccountPayto: mbu.accountPaytoUri, - exchangeBankAccount, reservePub: tipReserveResp.reserve_pub, }); |