summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-06 19:42:46 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-06 19:43:06 +0200
commit89d4f6430956129d9bfb29551fc2fa1c5c147676 (patch)
tree81bc1888abd15b01e18071615416f591a6a40b3f /src/backend/taler-merchant-httpd_private-get-orders-ID.c
parent2d1e2b3e9992652ab1ff2e7b8a34a511779d04dd (diff)
downloadmerchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.tar.gz
merchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.tar.bz2
merchant-89d4f6430956129d9bfb29551fc2fa1c5c147676.zip
fix backend double-pay issue (#7244)
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.c17
1 files changed, 11 insertions, 6 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 828d1d65..bc5bcfd9 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -1012,12 +1012,17 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
gorc->fulfillment_url = NULL;
}
TMH_db->preflight (TMH_db->cls);
- qs = TMH_db->lookup_contract_terms (TMH_db->cls,
- hc->instance->settings.id,
- hc->infix,
- &gorc->contract_terms,
- &gorc->order_serial,
- NULL);
+ {
+ bool paid = false;
+
+ qs = TMH_db->lookup_contract_terms (TMH_db->cls,
+ hc->instance->settings.id,
+ hc->infix,
+ &gorc->contract_terms,
+ &gorc->order_serial,
+ &paid,
+ NULL);
+ }
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
{
order_only = true;