summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-13 14:41:52 +0200
committerFlorian Dold <florian@dold.me>2021-08-13 14:42:00 +0200
commitcc5a88996b8822289fded15f5b0704e475acdf36 (patch)
treea98be4e0edf9bdfeba2ad81d93755e1189e9de65
parent1f29a920675738dd848411abcf2db27f9dd9579b (diff)
downloaddocs-cc5a88996b8822289fded15f5b0704e475acdf36.tar.gz
docs-cc5a88996b8822289fded15f5b0704e475acdf36.tar.bz2
docs-cc5a88996b8822289fded15f5b0704e475acdf36.zip
merchant spec: adjust paid HTML response
-rw-r--r--merchant-spec/public-orders-get.ts9
1 files 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 || "<backend pay success page>",
- responseType: "empty",
+ responseType: "OrderStatusHtmlPage",
};
}
return {