openedx.core.djangoapps.commerce package#

Subpackages#

Submodules#

openedx.core.djangoapps.commerce.utils module#

Commerce API Service.

openedx.core.djangoapps.commerce.utils.create_tracking_context(user)#

Assembles attributes from user and request objects to be sent along in E-Commerce API calls for tracking purposes.

openedx.core.djangoapps.commerce.utils.ecommerce_api_client(user, session=None)#

Returns an E-Commerce API client setup with authentication for the specified user.

DEPRECATED: To be replaced with get_ecommerce_api_client.

openedx.core.djangoapps.commerce.utils.get_ecommerce_api_base_url()#

Returns an E-Commerce API base URL.

openedx.core.djangoapps.commerce.utils.get_ecommerce_api_client(user)#

Returns an E-Commerce API client setup with authentication for the specified user.

openedx.core.djangoapps.commerce.utils.is_commerce_service_configured()#

Return a Boolean indicating whether or not configuration is present to use the external commerce service.

Module contents#

Thin Client for the Ecommerce API Service