diff options
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.c | 13 |
1 files changed, 9 insertions, 4 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 bcb9aa07..bd2c555a 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-paid.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-paid.c @@ -180,11 +180,16 @@ TMH_post_orders_ID_paid (const struct TMH_RequestHandler *rh, NULL); } } + if (NULL != session_id) { - // FIXME-#6581: extract fulfillment_url from contract_terms. - // IF present, *ALSO* resume long-polling clients for the - // same fulfillment URL + session_id! - // NOTE: also should do the same in the pay handler! + const char *fulfillment_url; + + fulfillment_url + = json_string_value (json_object_get (contract_terms, + "fulfillment_url")); + if (NULL != fulfillment_url) + TMH_long_poll_resume2 (session_id, + fulfillment_url); } json_decref (contract_terms); |