diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 7e2804fd..2e59fc6d 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -199,6 +199,11 @@ struct OrderContext */ struct TALER_ClaimTokenP claim_token; + /** + * Session ID (optional) to use for the order. + */ + const char *session_id; + } parse_request; @@ -626,7 +631,7 @@ execute_transaction (struct OrderContext *oc) qs = TMH_db->insert_order (TMH_db->cls, oc->hc->instance->settings.id, oc->parse_order.order_id, - NULL /* session ID! FIXME: protocol v6! */, + oc->parse_request.session_id, &oc->parse_request.h_post_data, oc->parse_order.pay_deadline, &oc->parse_request.claim_token, @@ -1997,6 +2002,10 @@ parse_request (struct OrderContext *oc) &ip), NULL), GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_string ("session_id", + &oc->parse_request.session_id), + NULL), + GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_array_const ("lock_uuids", &uuid), NULL), |