Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lmonari committed Mar 1, 2023
1 parent 597ecd7 commit 51444f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mangopay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
client_id = None
apikey = None

PLENTIFIC_NAMESPACE = os.getenv("PLENTIFIC_NAMESPACE", "uk")
PLENTIFIC_IS_E2E = env_to_bool("PLENTIFIC_IS_E2E", False)

MANGOPAY_URL = os.getenv("MANGOPAY_URL", "https://api.mangopay.com")
MANGOPAY_SANDBOX_URL = os.getenv("MANGOPAY_URL", "https://api.sandbox.mangopay.com")

# This logic will affect the URL used by this SDK only!
# On payments service we have similar settings (settings/mangopay.py) that applies
# to the MangopayAPIClient instead
PLENTIFIC_NAMESPACE = os.getenv("PLENTIFIC_NAMESPACE", "uk")
PLENTIFIC_IS_E2E = env_to_bool("PLENTIFIC_IS_E2E", False)
MANGOPAY_DEFAULT_LOCAL_MOCK_SERVER_URL = f"http://localhost:1081/mock-server/{PLENTIFIC_NAMESPACE}/mangopay"
MANGOPAY_DEFAULT_E2E_MOCK_SERVER_URL = "http://mock-server:1081/mangopay"
MANGOPAY_IS_MOCK_SERVER_ENABLED = env_to_bool("MANGOPAY_IS_MOCK_SERVER_ENABLED", False)

MANGOPAY_MOCK_SERVER_URL = os.environ.get(
"MANGOPAY_MOCK_SERVER_URL",
MANGOPAY_DEFAULT_E2E_MOCK_SERVER_URL
Expand Down

0 comments on commit 51444f8

Please sign in to comment.