diff --git a/payments/dummy/__init__.py b/payments/dummy/__init__.py index 0316c4419..f1d77d32b 100644 --- a/payments/dummy/__init__.py +++ b/payments/dummy/__init__.py @@ -68,7 +68,7 @@ def process_data(self, payment, request): def capture(self, payment, amount=None): payment.change_status(PaymentStatus.CONFIRMED) - payment.captured_amount = (amount or payment.total) + payment.captured_amount = amount or payment.total return amount def release(self, payment):