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: Fix /refund lookup


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: Fix /refund lookup response encoding
Date: Tue, 20 Jun 2017 20:18:45 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 01feaab  Fix /refund lookup response encoding
01feaab is described below

commit 01feaab2df135f376a3491881c78d58e8580277e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jun 20 20:18:32 2017 +0200

    Fix /refund lookup response encoding
---
 src/backend/taler-merchant-httpd_refund.c | 2 +-
 src/lib/test_merchant_api.c               | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_refund.c 
b/src/backend/taler-merchant-httpd_refund.c
index 229bbe5..2f0853a 100644
--- a/src/backend/taler-merchant-httpd_refund.c
+++ b/src/backend/taler-merchant-httpd_refund.c
@@ -340,7 +340,7 @@ process_refunds_cb (void *cls,
     return;
   }
 
-  element = json_pack ("{s:o, s:o, s:s, s:s, s:I, s:s, s:s}",
+  element = json_pack ("{s:o, s:o, s:o, s:o, s:I, s:o, s:o}",
                        "refund_amount", TALER_JSON_from_amount (refund_amount),
                        "refund_fee", TALER_JSON_from_amount (refund_fee),
                        "h_contract_terms", GNUNET_JSON_from_data_auto 
(prd->h_contract_terms),
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 10e8456..fa6de6b 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -1185,8 +1185,11 @@ refund_lookup_cb (void *cls,
     fail (is);
     return;
   }
+
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Ok /refund lookup\n");
+              "/refund lookup:\n%s\n",
+              json_dumps (obj, JSON_INDENT (2)));
+
   cmd->details.refund_lookup.rlo = NULL;
   next_command (is);
 }

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



reply via email to

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