Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improvements based on PR's comments
Unknown6ea2113343f1
diff --git a/saleor/graphql/order/mutations/orders.py b/saleor/graphql/order/mutations/orders.pyindex 6ed1cb2541..4072942679 100644--- a/saleor/graphql/order/mutations/orders.py+++ b/saleor/graphql/order/mutations/orders.py@@ -290,7 +290,7 @@ class OrderCapture(BaseMutation):errors = []if amount <= 0:cls.add_error(- errors, amount, 'Amount should be a positive number.')+ errors, 'amount', 'Amount should be a positive number.')return OrderCapture(errors=errors)order = cls.get_node_or_error(info, id, errors, 'id', Order)@@ -357,7 +357,7 @@ class OrderRefund(BaseMutation):errors = []if amount <= 0:cls.add_error(- errors, amount, 'Amount should be a positive number.')+ errors, 'amount', 'Amount should be a positive number.')return OrderRefund(errors=errors)order = cls.get_node_or_error(info, id, errors, 'id', Order)diff --git a/saleor/graphql/payment/mutations.py b/saleor/graphql/payment/mutations.pyindex 193b45c537..a3752464e8 100644--- a/saleor/graphql/payment/mutations.py+++ b/saleor/graphql/payment/mutations.py@@ -31,7 +31,8 @@ class PaymentInput(graphene.InputObjectType):required=False,description=('Total amount of the transaction, including '- 'all taxes and discounts.'))+ 'all taxes and discounts. If no amount is provided, '+ 'the checkout total will be used.'))billing_address = AddressInput(description=dedent('''Billing address. If empty, the billing address associated with