summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-12 19:34:13 +0200
committerFlorian Dold <florian@dold.me>2021-08-12 19:34:13 +0200
commit390546da21e6a4707dc3ba24440d217a2a5496a7 (patch)
treeb785c591dac72e77e3f51005c0c0dce37d129fb7
parente8dc761f3bc93ec7c41fad9aa2e5d994b6357686 (diff)
downloaddocs-390546da21e6a4707dc3ba24440d217a2a5496a7.tar.gz
docs-390546da21e6a4707dc3ba24440d217a2a5496a7.tar.bz2
docs-390546da21e6a4707dc3ba24440d217a2a5496a7.zip
minor spec fix
-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);
}