summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-orders-ID-paid.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-19 00:45:25 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-19 13:56:10 +0200
commited7cd6ce6d37212992c2c3eeffca404bbbd2d41e (patch)
treecf17808629cd4cabdcc0f049e7376bba24e7310f /src/backend/taler-merchant-httpd_post-orders-ID-paid.c
parentec0bd63ed17f54657a5aa049977b6f1e195f16b0 (diff)
downloadmerchant-ed7cd6ce6d37212992c2c3eeffca404bbbd2d41e.tar.gz
merchant-ed7cd6ce6d37212992c2c3eeffca404bbbd2d41e.tar.bz2
merchant-ed7cd6ce6d37212992c2c3eeffca404bbbd2d41e.zip
design for TALER_MERCHANT_order_paid API
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-paid.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-paid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-paid.c b/src/backend/taler-merchant-httpd_post-orders-ID-paid.c
index 45f13c45..74328f55 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-paid.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-paid.c
@@ -47,6 +47,7 @@ TMH_post_orders_ID_paid (const struct TMH_RequestHandler *rh,
.purpose.size = htonl (sizeof (pr))
};
struct TALER_MerchantSignatureP merchant_sig;
+ const char *session_id;
{
struct GNUNET_JSON_Specification spec[] = {
@@ -69,6 +70,9 @@ TMH_post_orders_ID_paid (const struct TMH_RequestHandler *rh,
: MHD_NO;
}
}
+ session_id = json_string_value (
+ json_object_get (hc->request_body,
+ "session_id"));
#if FIXME
if (GNUNET_OK !=
@@ -87,7 +91,8 @@ TMH_post_orders_ID_paid (const struct TMH_RequestHandler *rh,
}
// FIXME: check that h_contract_terms matches
- // this order-id (and that the order is known)
+ // this order-id (and that the order is known),
+ // and if it does, update 'session_id' (if non-NULL)
if (0)
{
return TALER_MHD_reply_json_pack (