diff options
Diffstat (limited to 'src/lib/merchant_api_post_templates.c')
-rw-r--r-- | src/lib/merchant_api_post_templates.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/merchant_api_post_templates.c b/src/lib/merchant_api_post_templates.c index 9592a5e3..3ab4320c 100644 --- a/src/lib/merchant_api_post_templates.c +++ b/src/lib/merchant_api_post_templates.c @@ -129,6 +129,10 @@ handle_post_templates_finished (void *cls, happen, we should pass the JSON reply to the application */ break; + case MHD_HTTP_CONFLICT: + hr.ec = TALER_JSON_get_error_code (json); + hr.hint = TALER_JSON_get_error_hint (json); + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: hr.ec = TALER_JSON_get_error_code (json); hr.hint = TALER_JSON_get_error_hint (json); @@ -199,7 +203,7 @@ TALER_MERCHANT_templates_post ( const char *backend_url, const char *template_id, const char *template_description, - const char *image, + const char *otp_id, const json_t *template_contract, TALER_MERCHANT_TemplatesPostCallback cb, void *cb_cls) @@ -218,8 +222,8 @@ TALER_MERCHANT_templates_post ( GNUNET_JSON_pack_string ("template_description", template_description), GNUNET_JSON_pack_allow_null ( - GNUNET_JSON_pack_string ("image", - image)), + GNUNET_JSON_pack_string ("otp_id", + otp_id)), GNUNET_JSON_pack_object_incref ("template_contract", (json_t *) template_contract)); tph = GNUNET_new (struct TALER_MERCHANT_TemplatesPostHandle); |