From d9b73a30c1ce67f611f9d605bdf163c3e868f2c2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 19 Aug 2020 20:56:10 +0530 Subject: test case for /paid API, implement fault-injected merchant --- .../taler-integrationtests/src/scenario-rerun-payment-multiple.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/taler-integrationtests/src/scenario-rerun-payment-multiple.ts') 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, }); -- cgit v1.2.3