gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch master updated: add resource_url fo


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: add resource_url for re-pay detection without contract download
Date: Tue, 16 Jan 2018 13:20:04 +0100

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 4752bd0  add resource_url for re-pay detection without contract 
download
4752bd0 is described below

commit 4752bd08367a17ad6abd49c9907b1208c9f6097d
Author: Florian Dold <address@hidden>
AuthorDate: Tue Jan 16 13:19:50 2018 +0100

    add resource_url for re-pay detection without contract download
---
 src/backend/taler-merchant-httpd_check-payment.c | 5 +++++
 src/backend/taler-merchant-httpd_trigger-pay.c   | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/backend/taler-merchant-httpd_check-payment.c 
b/src/backend/taler-merchant-httpd_check-payment.c
index 1e8a8be..65f1f9d 100644
--- a/src/backend/taler-merchant-httpd_check-payment.c
+++ b/src/backend/taler-merchant-httpd_check-payment.c
@@ -56,6 +56,7 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
   const char *session_id;
   const char *session_sig_str;
   const char *instance_str;
+  const char *resource_url;
   char *final_contract_url = NULL;
 
 
@@ -74,6 +75,9 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
   instance_str = MHD_lookup_connection_value (connection,
                                               MHD_GET_ARGUMENT_KIND,
                                               "instance");
+  resource_url = MHD_lookup_connection_value (connection,
+                                              MHD_GET_ARGUMENT_KIND,
+                                              "resource_url");
 
   if (NULL == instance_str)
     instance_str = "default";
@@ -234,6 +238,7 @@ do_pay:
     char *url = TMH_make_absolute_backend_url (connection, "trigger-pay",
                                                "contract_url", 
final_contract_url,
                                                "session_id", session_id,
+                                               "resource_url", resource_url,
                                                "h_contract_terms", 
h_contract_terms_str,
                                                NULL);
     int ret = TMH_RESPONSE_reply_json_pack (connection,
diff --git a/src/backend/taler-merchant-httpd_trigger-pay.c 
b/src/backend/taler-merchant-httpd_trigger-pay.c
index 33097a6..4228822 100644
--- a/src/backend/taler-merchant-httpd_trigger-pay.c
+++ b/src/backend/taler-merchant-httpd_trigger-pay.c
@@ -87,6 +87,7 @@ MH_handler_trigger_pay (struct TMH_RequestHandler *rh,
   add_header_from_arg (connection, "h_contract_terms", response, 
"X-Taler-Contract-Hash");
   add_header_from_arg (connection, "tip_token", response, "X-Taler-Tip");
   add_header_from_arg (connection, "refund_url", response, 
"X-Taler-Refund-Url");
+  add_header_from_arg (connection, "resource_url", response, 
"X-Taler-Resoure-Url");
 
   MHD_queue_response (connection, 402, response);
   MHD_destroy_response (response);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]