Policies
components.payment_gateway.subcomponents.authorizations.business_logic.policies.authorization_request_processing ¶
AuthorizationRequestProcessingPolicy ¶
This class is responsible for processing authorization request events.
It also manages the lifecycle of the authorization requests upon receiving subsequent payment events.
Source code in components/payment_gateway/subcomponents/authorizations/business_logic/policies/authorization_request_processing.py
authorize_pending_transaction ¶
Authorize a pending transaction.
This method implements the core logic of the Authorization Relay, approving or declining pending transactions based on the high level design described here:
Source code in components/payment_gateway/subcomponents/authorizations/business_logic/policies/authorization_request_processing.py
expense_category_resolver
instance-attribute
¶
on_payment_event ¶
Process an incoming Adyen payment event.
This method is called when a payment event is received from Adyen. It extracts any pending transaction identifier from the payload and releases it if it exists.
Source code in components/payment_gateway/subcomponents/authorizations/business_logic/policies/authorization_request_processing.py
update_active_transaction ¶
Update a previously authorized transaction.
This method manages the lifecycle of the authorization requests upon events received from the PSP.