commit b1a3c1cb80bc63807b33ec9435e7313fefd3ae09 parent 11776f2c64d661c067f12b62c80ab177a31bd0bd Author: Christian Blättler <blatc2@bfh.ch> Date: Thu, 6 Jun 2024 16:18:02 +0200 allow for orders with no coins (zero price) Diffstat:
| M | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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,