diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-02 19:38:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-02 19:39:30 +0200 |
commit | 72fe0486b3129cc5417bb01e40cf1436054494e9 (patch) | |
tree | 52bb874a120572dde3b505f21cabd9526482de7c | |
parent | 975b5e269db44b1294262f560f725b0a89e5fb28 (diff) |
-update to latest exchange API change
-rw-r--r-- | src/backend/taler-merchant-httpd_helper.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c index a8de49f0..266c5bab 100644 --- a/src/backend/taler-merchant-httpd_helper.c +++ b/src/backend/taler-merchant-httpd_helper.c @@ -68,11 +68,20 @@ TMH_payto_uri_array_valid (const json_t *payto_uris) } if (! payto_ok) break; - if (GNUNET_SYSERR == - TALER_JSON_validate_payto (uri)) { - payto_ok = false; - break; + char *err; + + if (NULL != + (err = TALER_payto_validate (uri))) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Encountered invalid payto://-URI `%s': %s\n", + uri, + err); + GNUNET_free (err); + payto_ok = false; + break; + } } } } |