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 | 14 |
1 files changed, 10 insertions, 4 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 38cbd6925..c4db7022d 100644 --- a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts +++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts @@ -26,6 +26,7 @@ import { defaultCoinConfig } from "../harness/denomStructures.js"; import { getWireMethodForTest, GlobalTestState, + MerchantApiClient, MerchantPrivateApi, WalletCli, } from "../harness/harness.js"; @@ -55,6 +56,13 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) { }, ); + const merchantClient = new MerchantApiClient( + merchant.makeInstanceBaseUrl("default"), + { + method: "external", + }, + ); + const walletTwo = new WalletCli(t, "walletTwo"); const walletThree = new WalletCli(t, "walletThree"); @@ -147,9 +155,7 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) { // Pay with coin from tipping { const mbu = await BankApi.createRandomBankUser(bank); - const tipReserveResp = await MerchantPrivateApi.createTippingReserve( - merchant, - "default", + const tipReserveResp = await merchantClient.createTippingReserve( { exchange_url: exchange.baseUrl, initial_balance: "TESTKUDOS:10", @@ -158,7 +164,7 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) { ); t.assertDeepEqual( - tipReserveResp.payto_uri, + tipReserveResp.accounts[0].payto_uri, exchangeBankAccount.accountPaytoUri, ); |