taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit cbc5591bf909506aa91925a1b84e7c4701a25bbb
parent f4de725ceb95fd4dd792ec442e2783c958dc6327
Author: Florian Dold <florian@dold.me>
Date:   Thu, 12 Aug 2021 20:57:21 +0200

spec: fix status code

Diffstat:
Mmerchant-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 @@ -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, }, }; }