Skip to content

Commit

Permalink
Fix refunds for Card payment method
Browse files Browse the repository at this point in the history
Typo during previous refactor lead to Card refunds failing. Not spotted
until now because the Card payment driver is only used for the backup
SumUp terminal at the Haymakers, and nowhere else.
  • Loading branch information
sde1000 committed Apr 28, 2023
1 parent fa7798b commit 9b132a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quicktill/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def start_payment(self, reg, transid, amount, outstanding):
["You can't refund more than the amount due back."],
title="Refund too large")
return
_cardpopup(self, reg, transid, amount, refund=True)
_cardpopup(self.paytype.paytype, reg, transid, amount, refund=True)
return
if amount > outstanding:
if self._cashback_method:
Expand Down

0 comments on commit 9b132a9

Please sign in to comment.