summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--merchant-spec/public-orders-get.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/merchant-spec/public-orders-get.ts b/merchant-spec/public-orders-get.ts
index f9668003..ec7860b0 100644
--- a/merchant-spec/public-orders-get.ts
+++ b/merchant-spec/public-orders-get.ts
@@ -51,6 +51,9 @@ function handlePublicOrdersGet(mos: MerchantOrderStore, req: Req): Resp {
return respNotFound(req);
}
if (!ord.claimed) {
+ if (!!req.claimToken && !!req.contractHash && ord.publicReorderUrl) {
+ return respGoto(req, ord.publicReorderUrl);
+ }
if (ord.requireClaimToken && ord.claimToken !== req.claimToken) {
return respForbidden(req);
}