summaryrefslogtreecommitdiff
path: root/packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-19 20:56:10 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-19 20:56:40 +0530
commitd9b73a30c1ce67f611f9d605bdf163c3e868f2c2 (patch)
treeffdbf9d5e1556df5d1a57a8870fa8057c7ba4ef5 /packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts
parent082498b20d2a73009bb4193cd95ab409159fb972 (diff)
downloadwallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.tar.gz
wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.tar.bz2
wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.zip
test case for /paid API, implement fault-injected merchant
Diffstat (limited to 'packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts')
-rw-r--r--packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts b/packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts
index 525ba9a25..3a98987b3 100644
--- a/packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts
+++ b/packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts
@@ -24,6 +24,7 @@ import {
MerchantService,
WalletCli,
runTestWithState,
+ MerchantPrivateApi,
} from "./harness";
import { withdrawViaBank } from "./helpers";
import fs from "fs";
@@ -52,7 +53,7 @@ async function withdrawAndPay(
// Set up order.
- const orderResp = await merchant.createOrder("default", {
+ const orderResp = await MerchantPrivateApi.createOrder(merchant, "default", {
order: {
summary: "Buy me!",
amount: "TESTKUDOS:80",
@@ -60,7 +61,7 @@ async function withdrawAndPay(
},
});
- let orderStatus = await merchant.queryPrivateOrderStatus({
+ let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, {
orderId: orderResp.order_id,
});
@@ -81,7 +82,7 @@ async function withdrawAndPay(
// Check if payment was successful.
- orderStatus = await merchant.queryPrivateOrderStatus({
+ orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, {
orderId: orderResp.order_id,
});