From cc5a88996b8822289fded15f5b0704e475acdf36 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 13 Aug 2021 14:41:52 +0200 Subject: merchant spec: adjust paid HTML response --- merchant-spec/public-orders-get.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/merchant-spec/public-orders-get.ts b/merchant-spec/public-orders-get.ts index b3c47226..130f53f5 100644 --- a/merchant-spec/public-orders-get.ts +++ b/merchant-spec/public-orders-get.ts @@ -194,11 +194,14 @@ function respPaid(req: Req, ord: MerchantOrderInfo): Resp { talerHeader: "taler://refund/...", }; } + // We do not redirect here. Only + // the JS on the QR code page automatically redirects. + // Without JS, the user has to manually click through to + // the fulfillment URL. return { - httpStatus: "302 Found", + httpStatus: "200 OK", contentType: "html", - redirectLocation: ord.fulfillmentUrl || "", - responseType: "empty", + responseType: "OrderStatusHtmlPage", }; } return { -- cgit v1.2.3