[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: consider already_paid_order_id o
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: consider already_paid_order_id on order status page |
Date: |
Mon, 07 Sep 2020 08:09:44 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new f2f81bf consider already_paid_order_id on order status page
f2f81bf is described below
commit f2f81bf4d5c79a7eb15a304c26b0a8595672c432
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Mon Sep 7 11:28:33 2020 +0530
consider already_paid_order_id on order status page
Also add already_paid_fulfillment_url for the storefront.
---
src/backend/taler-merchant-httpd_get-orders-ID.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index 90f42b7..4f77fba 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -525,6 +525,30 @@ send_pay_request (struct GetOrderData *god,
{
char *qr;
+ if ( (NULL != already_paid_order_id) && (NULL != god->fulfillment_url) )
+ {
+ struct MHD_Response *reply;
+ MHD_RESULT ret;
+
+ reply = MHD_create_response_from_buffer (0,
+ NULL,
+ MHD_RESPMEM_PERSISTENT);
+ if (NULL == reply)
+ {
+ GNUNET_break (0);
+ return MHD_NO;
+ }
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (reply,
+ MHD_HTTP_HEADER_LOCATION,
+ god->fulfillment_url));
+ ret = MHD_queue_response (god->sc.con,
+ MHD_HTTP_FOUND,
+ reply);
+ MHD_destroy_response (reply);
+ return ret;
+ }
+
qr = TMH_create_qrcode (taler_pay_uri);
if (NULL == qr)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: consider already_paid_order_id on order status page,
gnunet <=