[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: rudimentary impleme
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: rudimentary implementation of pay_refund_cb |
Date: |
Fri, 29 Dec 2017 16:00:03 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 7e9cb4f rudimentary implementation of pay_refund_cb
7e9cb4f is described below
commit 7e9cb4f4058f36e45859f10e1a2319166bccc4a0
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Dec 29 15:59:59 2017 +0100
rudimentary implementation of pay_refund_cb
---
src/lib/test_merchant_api.c | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 469eb80..9b2290c 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -2596,9 +2596,25 @@ pay_refund_cb (void *cls,
const json_t *obj)
{
struct InterpreterState *is = cls;
-
- GNUNET_break (0);
- fail (is); // FIXME: not implemented!
+ struct Command *cmd = &is->commands[is->ip];
+
+ cmd->details.pay_abort.ph = NULL;
+ if (cmd->expected_response_code != http_status)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Unexpected response code %u to command %s\n",
+ http_status,
+ cmd->label);
+ fail (is);
+ return;
+ }
+ if ( (MHD_HTTP_OK == http_status) &&
+ (TALER_EC_NONE == ec) )
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "TODO: implement check of returned data\n");
+ }
+ next_command (is);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: rudimentary implementation of pay_refund_cb,
gnunet <=