Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix typo of stripe locale
jxltomad6706987341
diff --git a/docs/payment-gateways/stripe.rst b/docs/payment-gateways/stripe.rstindex 60b59bc170..4138512704 100644--- a/docs/payment-gateways/stripe.rst+++ b/docs/payment-gateways/stripe.rst@@ -14,7 +14,7 @@ This gateway implements payments using `Stripe <https://stripe.com/>`_.``STRIPE_STORE_IMAGE`` An absolute or relative link of your store logo to show in the checkout form``STRIPE_PREFILL`` Prefill the email adddress in the checkout form if set to ``True`` (default)``STRIPE_REMEMBER_ME`` Add "Remember Me" for future purchases in the checkout form if set to ``True`` (default)- ``STRIPE_LOCAL`` Specify ``auto`` to display checkout form in the user's preferred language (default)+ ``STRIPE_LOCALE`` Specify ``auto`` to display checkout form in the user's preferred language (default)``STRIPE_ENABLE_BILLING_ADDRESS`` Collect the user's billing address in the checkout form if set to ``True``. The default is ``False````STRIPE_ENABLE_SHIPPING_ADDRESS`` Collect the user's shipping address in the checkout form if set to ``True``. The default is ``False``================================== ======================================================================================================diff --git a/saleor/payment/gateways/stripe/forms.py b/saleor/payment/gateways/stripe/forms.pyindex 9aebec55c9..5285533da5 100644--- a/saleor/payment/gateways/stripe/forms.py+++ b/saleor/payment/gateways/stripe/forms.py@@ -26,7 +26,7 @@ class StripeCheckoutWidget(HiddenInput):'data-image': gateway_params.get('store_image'),'data-description': CHECKOUT_DESCRIPTION,'data-currency': payment.currency,- 'data-locale': gateway_params.get('local'),+ 'data-locale': gateway_params.get('locale'),'data-allow-remember-me': 'true' if gateway_params.get('remember_me') else 'false','data-billing-address': 'true' if gateway_params.get(diff --git a/saleor/settings.py b/saleor/settings.pyindex 23f81be0db..1f37490ac3 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -593,7 +593,7 @@ PAYMENT_GATEWAYS = {'store_image': os.environ.get('STRIPE_STORE_IMAGE', None),'prefill': get_bool_from_env('STRIPE_PREFILL', True),'remember_me': os.environ.get('STRIPE_REMEMBER_ME', True),- 'local': os.environ.get('STRIPE_LOCAL', 'auto'),+ 'locale': os.environ.get('STRIPE_LOCALE', 'auto'),'enable_billing_address': os.environ.get('STRIPE_ENABLE_BILLING_ADDRESS', False),'enable_shipping_address': os.environ.get(diff --git a/tests/gateway/test_stripe.py b/tests/gateway/test_stripe.pyindex a9b9f7809a..65666edba4 100644--- a/tests/gateway/test_stripe.py+++ b/tests/gateway/test_stripe.py@@ -33,7 +33,7 @@ def gateway_params():'store_image': 'image.gif','prefill': True,'remember_me': True,- 'local': 'auto',+ 'locale': 'auto','enable_billing_address': False,'enable_shipping_address': False}