diff options
-rw-r--r-- | merchant-spec/public-orders-get.ts | 5 |
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, }, }; } |