def is_commerce_service_configured():
 ecommerce_api_url = configuration_helpers.get_value('ECOMMERCE_API_URL', settings.ECOMMERCE_API_URL)
 ecommerce_api_signing_key = configuration_helpers.get_value('ECOMMERCE_API_SIGNING_KEY', settings.ECOMMERCE_API_SIGNING_KEY)
 return bool((ecommerce_api_url and ecommerce_api_signing_key))

def is_commerce_service_configured ( ) : ecommerce_api_url = configuration_helpers . get_value ( 'ECOMMERCE_API_URL' , settings . ECOMMERCE_API_URL ) ecommerce_api_signing_key = configuration_helpers . get_value ( 'ECOMMERCE_API_SIGNING_KEY' , settings . ECOMMERCE_API_SIGNING_KEY ) return bool ( ( ecommerce_api_url and ecommerce_api_signing_key ) )
return a boolean indicating whether or not configuration is present to use the external commerce service .