aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
diff options
context:
space:
mode:
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.ts49
1 files changed, 2 insertions, 47 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 8ca00359c..cdb100c65 100644
--- a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
+++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
@@ -17,21 +17,16 @@
/**
* Imports.
*/
+import { AmountString, MerchantApiClient } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { defaultCoinConfig } from "../harness/denomStructures.js";
-import { getWireMethodForTest, GlobalTestState } from "../harness/harness.js";
+import { GlobalTestState } from "../harness/harness.js";
import {
createSimpleTestkudosEnvironmentV2,
createWalletDaemonWithClient,
makeTestPaymentV2,
withdrawViaBankV2,
} from "../harness/helpers.js";
-import {
- TalerCorebankApiClient,
- MerchantApiClient,
- WireGatewayApiClient,
- AmountString,
-} from "@gnu-taler/taler-util";
/**
* Run test for basic, bank-integrated withdrawal and payment.
@@ -177,46 +172,6 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
{},
);
}
-
- // Pay with coin from tipping
- {
- const bankClient = new TalerCorebankApiClient(bank.corebankApiBaseUrl);
- const mbu = await bankClient.createRandomBankUser();
- const tipReserveResp = await merchantClient.createTippingReserve({
- exchange_url: exchange.baseUrl,
- initial_balance: "TESTKUDOS:10" as AmountString,
- wire_method: getWireMethodForTest(),
- });
-
- t.assertDeepEqual(
- tipReserveResp.accounts[0].payto_uri,
- exchangeBankAccount.accountPaytoUri,
- );
-
- const wireGatewayApiClient = new WireGatewayApiClient(
- exchangeBankAccount.wireGatewayApiBaseUrl,
- {
- auth: {
- username: exchangeBankAccount.accountName,
- password: exchangeBankAccount.accountPassword,
- },
- },
- );
-
- await wireGatewayApiClient.adminAddIncoming({
- amount: "TESTKUDOS:10",
- debitAccountPayto: mbu.accountPaytoUri,
- reservePub: tipReserveResp.reserve_pub,
- });
-
- await exchange.runWirewatchOnce();
-
- const tip = await merchantClient.giveTip({
- amount: "TESTKUDOS:5" as AmountString,
- justification: "why not?",
- next_url: "https://example.com/after-tip",
- });
- }
}
runAgeRestrictionsMerchantTest.suites = ["wallet"];