Files
edx-platform/lms/djangoapps/shoppingcart/processors/helpers.py
Nimisha Asthagiri 3eb5783f51 Remove microsites from shoppingcart
DEPR-27
2019-05-29 02:23:51 -04:00

27 lines
761 B
Python

"""
Helper methods for credit card processing modules.
These methods should be shared among all processor implementations,
but should NOT be imported by modules outside this package.
"""
from __future__ import absolute_import
from django.conf import settings
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
def get_processor_config():
"""
Return a dictionary of configuration settings for the active credit card processor.
If configuration overrides are available, return those instead.
Returns:
dict
"""
# Retrieve the configuration settings for the active credit card processor
config = settings.CC_PROCESSOR.get(
settings.CC_PROCESSOR_NAME, {}
)
return config