Adapters
components.payment_gateway.subcomponents.authorizations.adapters.adyen ¶
authorisation_relay ¶
AdyenAuthorisationRelay ¶
Bases: Subscriber
This class implements the main Adyen Authorisation Relay connector between their webhooks and our business logic.
It provides both an entry point to respond to authorisation webhooks, and a TransferNotificationRequest topic subscriber to process card transfer events on previously handled authorisation requests.
authorization_request_processing_policy
instance-attribute
¶
on_authorisation_request ¶
Process an incoming Adyen authorisation request event.
This method is called when an authorization request webhook is received from Adyen. It converts the webhook payload to a PendingTransaction before calling the core policy.
Source code in components/payment_gateway/subcomponents/authorizations/adapters/adyen/authorisation_relay.py
receive ¶
Receive card transfer events and forward them to the core policy for lifecycle management.
Source code in components/payment_gateway/subcomponents/authorizations/adapters/adyen/authorisation_relay.py
register_policy ¶
Register the policy to be used for processing authorisation requests.
Any authorisation request will be denied until this method is called.
Source code in components/payment_gateway/subcomponents/authorizations/adapters/adyen/authorisation_relay.py
helpers ¶
authorization_request_external_id_from_transfer_data ¶
Source code in components/payment_gateway/subcomponents/authorizations/adapters/adyen/helpers.py
to_pending_transaction ¶
Convert an Adyen authorisation request to a pending transaction.