Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix typo

jxltom22744e55054e
diff --git a/saleor/payment/models.py b/saleor/payment/models.py
index d4a351c838..20b60f3f48 100644
--- a/saleor/payment/models.py
+++ b/saleor/payment/models.py
@@ -114,10 +114,10 @@ class Payment(models.Model):
# The authorized amount should exclude the already captured amount
for transaction in self.transactions.filter(
kind=TransactionKind.CAPTURE, is_success=True).all():
- # This code actually won't run since partial capture is not
- # supported and zero money will return directly. It is put here
- # intently to prove the correct logic
- # in case partial capture is supported later though it is unlikely
+ # This code actually won't run since multiple partial capture is
+ # not supported and zero money will return directly. It is put here
+ # intently to prove the correct logic in case
+ # multiple partial capture is supported later though it's unlikely
money -= Money(
transaction.amount, self.currency or settings.DEFAULT_CURRENCY)