extra check

This commit is contained in:
Florian Dold 2020-08-18 13:12:19 +05:30
parent f6d81037a7
commit 53cd347b1c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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);