adyen.settings_config module¶
-
class
adyen.settings_config.FromSettingsConfig¶ Bases:
adyen.config.AbstractAdyenConfigManage Plugin’s configuration from the project’s settings.
It gets all information required by the plugin from the project’s settings, and can be used as a base class for specific cases.
The expected settings are:
-
get_action_url(request)¶ Return
ADYEN_ACTION_URL.
-
get_allowed_methods(request, source_type=None)¶ Return
ADYEN_ALLOWED_METHODSorNone.Parameters: - request – Django HTTP request object.
- source_type – A
SourceTypeobject orNone.
If the setting is not configured, the default value
Noneis returned instead. It means the application does not specify any allowed methods so customers can select a payment methods on the Adyen HPP itself.Note that both
requestandsource_typeparameters are ignored and only the setting matters.
-
get_identifier(request)¶ Return
ADYEN_IDENTIFIER.
-
get_ip_address_header()¶ Return
ADYEN_IP_ADDRESS_HTTP_HEADERorREMOTE_ADDR.If the setting is not configured, the default value
REMOTE_ADDRis returned instead.
-
get_signer_backend(request)¶ Return
ADYEN_SIGNER_BACKENDoradyen.signers.HMACSha1
-
get_skin_code(request)¶ Return
ADYEN_SKIN_CODE.
-
get_skin_secret(request)¶ Return
ADYEN_SECRET_KEY.
-