aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-06-06 16:18:02 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-06-06 16:18:14 +0200
commitb1a3c1cb80bc63807b33ec9435e7313fefd3ae09 (patch)
tree0c147de4e02947a0bb40c44342a6574abc678c89
parent11776f2c64d661c067f12b62c80ab177a31bd0bd (diff)
allow for orders with no coins (zero price)
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index f69d163e..948789cb 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -2674,7 +2674,9 @@ phase_contract_paid (struct PayContext *pc)
&deposit_paid_check,
pc);
/* TODO: Check tokens */
- if (qs <= 0)
+ /* Since orders with choices can have a price of zero,
+ 0 is also a valid query state */
+ if (qs < 0)
{
GNUNET_break (0);
pay_end (pc,