diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-06 19:42:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-06 19:43:06 +0200 |
commit | 89d4f6430956129d9bfb29551fc2fa1c5c147676 (patch) | |
tree | 81bc1888abd15b01e18071615416f591a6a40b3f /src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | |
parent | 2d1e2b3e9992652ab1ff2e7b8a34a511779d04dd (diff) |
fix backend double-pay issue (#7244)
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c index 96352a93..3953fa06 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c +++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c @@ -158,12 +158,14 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, uint64_t order_serial; struct GNUNET_TIME_Timestamp refund_deadline; struct GNUNET_TIME_Timestamp timestamp; + bool paid = false; qs = TMH_db->lookup_contract_terms (TMH_db->cls, hc->instance->settings.id, hc->infix, &contract_terms, &order_serial, + &paid, NULL); if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs) { @@ -306,12 +308,14 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh, enum GNUNET_DB_QueryStatus qs; json_t *contract_terms; uint64_t order_serial; + bool paid; qs = TMH_db->lookup_contract_terms (TMH_db->cls, hc->instance->settings.id, hc->infix, &contract_terms, &order_serial, + &paid, NULL); if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) { |