diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-18 13:12:19 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-18 13:12:19 +0530 |
commit | 53cd347b1c75496e4f6feee7792cc81c2aeda961 (patch) | |
tree | 318ec2de230f56c160d095abbd5ed6eeafc52f75 | |
parent | f6d81037a723ec7f89165811153544c5ec18e2ec (diff) |
extra check
-rw-r--r-- | packages/taler-integrationtests/src/test-paywall-flow.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/test-paywall-flow.ts b/packages/taler-integrationtests/src/test-paywall-flow.ts index 5214acc4f..74be96c8e 100644 --- a/packages/taler-integrationtests/src/test-paywall-flow.ts +++ b/packages/taler-integrationtests/src/test-paywall-flow.ts @@ -201,6 +201,15 @@ runTest(async (t: GlobalTestState) => { t.assertTrue(orderStatus.order_status === "paid"); + // Check that with a completely new session ID, the status would NOT + // be paid. + orderStatus = await merchant.queryPrivateOrderStatus({ + orderId: firstOrderId, + sessionId: "mysession-four", + }); + + t.assertTrue(orderStatus.order_status === "unpaid"); + // Now check if the public status of the new order is correct. console.log("requesting public status", publicOrderStatusUrl); |