aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-payment.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-payment.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-payment.ts18
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts
index aaf83dd4b..da9f97bf4 100644
--- a/packages/taler-harness/src/integrationtests/test-payment.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment.ts
@@ -17,14 +17,14 @@
/**
* Imports.
*/
+import { j2s } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
import {
createSimpleTestkudosEnvironmentV3,
- withdrawViaBankV3,
makeTestPaymentV2,
+ withdrawViaBankV2,
} from "../harness/helpers.js";
-import { j2s } from "@gnu-taler/taler-util";
/**
* Run test for basic, bank-integrated withdrawal and payment.
@@ -32,19 +32,23 @@ import { j2s } from "@gnu-taler/taler-util";
export async function runPaymentTest(t: GlobalTestState) {
// Set up test environment
- const { walletClient, bankClient, exchange, merchant } =
+ const { bank, walletClient, exchange, merchant } =
await createSimpleTestkudosEnvironmentV3(t, undefined, {
withLibeufin: false,
});
// Withdraw digital cash into the wallet.
-
- t.assertTrue(bankClient !== undefined);
- await withdrawViaBankV3(t, { walletClient, bankClient, exchange, amount: "TESTKUDOS:20" });
+
+ await withdrawViaBankV2(t, {
+ walletClient,
+ exchange,
+ amount: "TESTKUDOS:20",
+ bank,
+ });
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
- console.log("line 51")
+ console.log("line 51");
const order = {
summary: "Buy me!",