diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-09-09 23:11:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-09 23:11:51 +0200 |
commit | e12f64d45b2f58b716497aab6fd6273b8f92b740 (patch) | |
tree | 06edf6f0faf5839dde351aca7f9fd275eedfe7cd /src/backend/taler-merchant-httpd_post-orders-ID-paid.c | |
parent | 7302e0cc35bd3de6e84fa1310be094243372a3bc (diff) | |
download | merchant-e12f64d45b2f58b716497aab6fd6273b8f92b740.tar.gz merchant-e12f64d45b2f58b716497aab6fd6273b8f92b740.tar.bz2 merchant-e12f64d45b2f58b716497aab6fd6273b8f92b740.zip |
likely fix for #6581, still needs testcase
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); |