Service¶
- exception terminusgps.authorizenet.service.AuthorizenetControllerExecutionError(message: str, code: str, *args, **kwargs)[source]¶
Raised when an Authorizenet API controller fails to execute.
- class terminusgps.authorizenet.service.AuthorizenetService[source]¶
Base service for safely interacting with the Authorizenet API.
Public Data Attributes:
REQUIRED_SETTINGS
Public Methods:
__init__
()Raises
ImproperlyConfigured
if required settings weren't set.execute
(request_tuple[, reference_id])Adds required authentication data to the Authorizenet API request before executing it and returning its response.
Merchant authentication element for Authorizenet API requests.
Environment for Authorizenet API requests.
Validation mode for Authorizenet API requests.
- execute(request_tuple: tuple[ObjectifiedElement, type[APIOperationBase]], reference_id: str | None = None) ObjectifiedElement [source]¶
Adds required authentication data to the Authorizenet API request before executing it and returning its response.
If
reference_id
was provided, it is added to the request before execution.- Parameters:
- Raises:
AuthorizenetControllerExecutionError – If the API call failed.
- Returns:
An Authorizenet API response.
- Return type:
ObjectifiedElement
- property merchantAuthentication: merchantAuthenticationType¶
Merchant authentication element for Authorizenet API requests.