Skip to content

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

Remove hanging comma and fix typo

Unknown1d0cc68bf2d2
diff --git a/saleor/payment/gateways/stripe/__init__.py b/saleor/payment/gateways/stripe/__init__.py
index 8cba7c5c99..ffd65adf95 100644
--- a/saleor/payment/gateways/stripe/__init__.py
+++ b/saleor/payment/gateways/stripe/__init__.py
@@ -206,7 +206,7 @@ def _create_transaction(payment, amount, kind, response):
# Get token, which is an empty string for error responses
token = response.get('id', '')
- # Check is_uccess from response
+ # Check if the response's status is flagged as succeeded
is_success = (response.get('status') == 'succeeded')
# Create transaction
diff --git a/saleor/payment/gateways/stripe/forms.py b/saleor/payment/gateways/stripe/forms.py
index 0839abb2ef..0881f09b90 100644
--- a/saleor/payment/gateways/stripe/forms.py
+++ b/saleor/payment/gateways/stripe/forms.py
@@ -33,7 +33,7 @@ class StripeCheckoutWidget(HiddenInput):
'data-zip-code': 'true' if gateway_params.get(
'enable_billing_address') else 'false',
'data-shipping-address': 'true' if gateway_params.get(
- 'enable_shipping_address') else 'false',
+ 'enable_shipping_address') else 'false'
}
if gateway_params.get('prefill'):
diff --git a/saleor/settings.py b/saleor/settings.py
index 37b3cbdb51..23f81be0db 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -597,7 +597,7 @@ PAYMENT_GATEWAYS = {
'enable_billing_address': os.environ.get(
'STRIPE_ENABLE_BILLING_ADDRESS', False),
'enable_shipping_address': os.environ.get(
- 'STRIPE_ENABLE_SHIPPING_ADDRESS', False),
+ 'STRIPE_ENABLE_SHIPPING_ADDRESS', False)
}
}
}