summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-12 20:57:21 +0200
committerFlorian Dold <florian@dold.me>2021-08-12 20:57:30 +0200
commitcbc5591bf909506aa91925a1b84e7c4701a25bbb (patch)
tree4fcdddd8dd51e2cd501bbc102756d161e062d957
parentf4de725ceb95fd4dd792ec442e2783c958dc6327 (diff)
downloaddocs-cbc5591bf909506aa91925a1b84e7c4701a25bbb.tar.gz
docs-cbc5591bf909506aa91925a1b84e7c4701a25bbb.tar.bz2
docs-cbc5591bf909506aa91925a1b84e7c4701a25bbb.zip
spec: fix status code
-rw-r--r--merchant-spec/public-orders-get.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/merchant-spec/public-orders-get.ts b/merchant-spec/public-orders-get.ts
index 263e29f6..b3c47226 100644
--- a/merchant-spec/public-orders-get.ts
+++ b/merchant-spec/public-orders-get.ts
@@ -133,11 +133,12 @@ function respAlreadyPaid(req: Req, alreadyPaidOrd: MerchantOrderInfo): Resp {
};
}
return {
- httpStatus: "202 Accepted",
+ httpStatus: "402 PaymentRequired",
contentType: "json",
- responseType: "StatusGotoResponse",
+ responseType: "StatusUnpaidResponse",
response: {
fulfillment_url: alreadyPaidOrd.fulfillmentUrl,
+ already_paid_order_id: alreadyPaidOrd.orderId,
},
};
}