diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-using-templates.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-using-templates.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_post-using-templates.c b/src/backend/taler-merchant-httpd_post-using-templates.c index aeb50cee..22a93847 100644 --- a/src/backend/taler-merchant-httpd_post-using-templates.c +++ b/src/backend/taler-merchant-httpd_post-using-templates.c @@ -45,8 +45,6 @@ TMH_post_using_templates_ID (const struct TMH_RequestHandler *rh, json_t *fake_body; bool no_summary; struct TALER_MERCHANTDB_TemplateDetails etp; - char *pos_key = NULL; // FIXME: fetch from DB! - enum TALER_MerchantConfirmationAlgorithm pos_algorithm = TALER_MCA_NONE; // FIXME fetch from DB! struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("summary", @@ -114,6 +112,7 @@ TMH_post_using_templates_ID (const struct TMH_RequestHandler *rh, } { + /* template */ const char *tsummary; uint32_t min_age; struct GNUNET_TIME_Relative pay_duration; @@ -238,8 +237,8 @@ TMH_post_using_templates_ID (const struct TMH_RequestHandler *rh, mret = TMH_private_post_orders_with_pos_secrets (NULL, /* not even used */ connection, &fake_hc, - pos_key, - pos_algorithm); + etp.pos_key, + etp.pos_algorithm); } TALER_MERCHANTDB_template_details_free (&etp); json_decref (fake_body); |