Skip to content

Commit

Permalink
Fix spelling of status in SquarePayment!
Browse files Browse the repository at this point in the history
Argh, didn't have time to put the test environment together for this...
  • Loading branch information
sde1000 committed Apr 14, 2023
1 parent 53cbf59 commit bdf7631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quicktill/squareterminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,10 @@ def update(self, cancel=False):
for idx, square_payment_id in enumerate(checkout.payment_ids):
square_payment = self.session.get_payment(square_payment_id)
value = square_payment.total_money.as_decimal()
if square_payment.state in ("FAILED", "CANCELED"):
if square_payment.status in ("FAILED", "CANCELED"):
# This payment has zero value
log.warning("payment %s in state %s", square_payment_id,
square_payment.state)
square_payment.status)
value = zero
if idx == 0:
payment = p
Expand Down

0 comments on commit bdf7631

Please sign in to comment.