summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-using-templates.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-using-templates.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-using-templates.c11
1 files changed, 7 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 0f875853..aeb50cee 100644
--- a/src/backend/taler-merchant-httpd_post-using-templates.c
+++ b/src/backend/taler-merchant-httpd_post-using-templates.c
@@ -45,7 +45,8 @@ 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",
@@ -234,9 +235,11 @@ TMH_post_using_templates_ID (const struct TMH_RequestHandler *rh,
.instance = hc->instance
};
- mret = TMH_private_post_orders (NULL, /* not even used */
- connection,
- &fake_hc);
+ mret = TMH_private_post_orders_with_pos_secrets (NULL, /* not even used */
+ connection,
+ &fake_hc,
+ pos_key,
+ pos_algorithm);
}
TALER_MERCHANTDB_template_details_free (&etp);
json_decref (fake_body);