Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix coding style issues
Jakub Draganekbb352a28f08a
diff --git a/saleor/payment/gateways/stripe/__init__.py b/saleor/payment/gateways/stripe/__init__.pyindex e7bfaf6057..10ba34c7d1 100644--- a/saleor/payment/gateways/stripe/__init__.py+++ b/saleor/payment/gateways/stripe/__init__.py@@ -20,8 +20,9 @@ from .utils import (def get_client_token(**_):- """Not implemented for stripe gateway currently. The client token can be- generated by Stripe's checkout.js or stripe.js automatically.+ """Not implemented for stripe gateway currently.++ The client token can be generated by stripe.js automatically."""returndiff --git a/saleor/payment/gateways/stripe/utils.py b/saleor/payment/gateways/stripe/utils.pyindex ca4a068629..729fae8109 100644--- a/saleor/payment/gateways/stripe/utils.py+++ b/saleor/payment/gateways/stripe/utils.py@@ -31,6 +31,7 @@ ZERO_DECIMAL_CURRENCIES = [def get_amount_for_stripe(amount, currency):"""Get appropriate amount for stripe.+Stripe is using currency's smallest unit such as cents for USD andstripe requires integer instead of decimal, so multiplying by 100and converting to integer is required. But for zero-decimal currencies,@@ -60,6 +61,7 @@ def get_amount_from_stripe(amount, currency):def get_currency_for_stripe(currency):"""Convert Saleor's currency format to Stripe's currency format.+Stripe's currency is using lowercase while Saleor is using uppercase."""return currency.lower()@@ -67,6 +69,7 @@ def get_currency_for_stripe(currency):def get_currency_from_stripe(currency):"""Convert Stripe's currency format to Saleor's currency format.+Stripe's currency is using lowercase while Saleor is using uppercase."""return currency.upper()