aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/integrationtest.ts2
-rw-r--r--src/headless/taler-wallet-cli.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/headless/integrationtest.ts b/src/headless/integrationtest.ts
index 51e93f30b..8e1effbea 100644
--- a/src/headless/integrationtest.ts
+++ b/src/headless/integrationtest.ts
@@ -77,7 +77,7 @@ async function makePayment(
paymentStatus = await merchant.checkPayment(orderResp.orderId);
- if (!paymentStatus.paid) {
+ if (paymentStatus.order_status !== "paid") {
console.log("payment status:", paymentStatus);
throw Error("payment did not succeed");
}
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 2502ec7db..63698bf69 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -907,7 +907,7 @@ testCli
const checkPayResp2 = await merchantBackend.checkPayment(
orderResp.orderId,
);
- if (checkPayResp2.paid) {
+ if (checkPayResp2.order_status === "paid") {
console.log("payment successfully received!");
break;
}