From cbc5591bf909506aa91925a1b84e7c4701a25bbb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 12 Aug 2021 20:57:21 +0200 Subject: spec: fix status code --- merchant-spec/public-orders-get.ts | 5 +++-- 1 file 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, }, }; } -- cgit v1.2.3