aboutsummaryrefslogtreecommitdiff
path: root/src/headless/integrationtest.ts
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/integrationtest.ts
parent245564ec5c4378215c3fab7583f7848ad23efc65 (diff)
downloadwallet-core-530f0b3f2e6a44840a2069b84ac9e5a438d01e8e.tar.xz
implement merchant API changes
Diffstat (limited to 'src/headless/integrationtest.ts')
-rw-r--r--src/headless/integrationtest.ts2
1 files changed, 1 insertions, 1 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");
}