summaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-24 14:42:35 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-24 14:42:35 +0530
commit530f0b3f2e6a44840a2069b84ac9e5a438d01e8e (patch)
treeb663d9e73bff705e4d858f240326bc719667e05e /src/headless
parent245564ec5c4378215c3fab7583f7848ad23efc65 (diff)
downloadwallet-core-530f0b3f2e6a44840a2069b84ac9e5a438d01e8e.tar.gz
wallet-core-530f0b3f2e6a44840a2069b84ac9e5a438d01e8e.tar.bz2
wallet-core-530f0b3f2e6a44840a2069b84ac9e5a438d01e8e.zip
implement merchant API changes
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;
}