diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-30 16:13:41 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-30 16:13:41 +0530 |
commit | b78ea88377e8bad13d2a85cc357db37ca640d332 (patch) | |
tree | 9201ebd2cf2966de06d0ddbc5f2c1ac2d66f6352 /src/backend/taler-merchant-httpd_private-get-orders-ID.c | |
parent | cbe85cf52487c859535525877d2b53caea45f271 (diff) | |
download | merchant-b78ea88377e8bad13d2a85cc357db37ca640d332.tar.gz merchant-b78ea88377e8bad13d2a85cc357db37ca640d332.tar.bz2 merchant-b78ea88377e8bad13d2a85cc357db37ca640d332.zip |
emit claim token in URI
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-orders-ID.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c index 3d6c930b..27527034 100644 --- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -753,6 +753,7 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, bool paid; bool wired; bool order_only = false; + struct TALER_ClaimTokenP claim_token = { 0 }; if (NULL == gorc) { @@ -832,7 +833,7 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, qs = TMH_db->lookup_order (TMH_db->cls, hc->instance->settings.id, hc->infix, - NULL, + &claim_token, &gorc->contract_terms); order_only = true; } @@ -965,10 +966,12 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, char *taler_pay_uri; MHD_RESULT ret; + /* Claim token is NULL, as order has already been claimed anyway. */ taler_pay_uri = TMH_make_taler_pay_uri (connection, hc->infix, gorc->session_id, - hc->instance->settings.id); + hc->instance->settings.id, + &claim_token); ret = TALER_MHD_reply_json_pack (connection, MHD_HTTP_OK, "{s:s, s:s, s:s}", @@ -1035,7 +1038,8 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, taler_pay_uri = TMH_make_taler_pay_uri (connection, hc->infix, gorc->session_id, - hc->instance->settings.id); + hc->instance->settings.id, + &claim_token); ret = TALER_MHD_reply_json_pack (connection, MHD_HTTP_OK, "{s:s, s:O, s:s}", |