Files
odoo_source/addons/payment_adyen/models
Demesmaeker f9a460d814 [FIX] payment_adyen: discard refund notifications for unknown source txs
Before this commit, a ValueError would be raised upon receiving a refund
notification for a source transaction whose reference was not found in
the database. As only ValidationError's are caught by the webhook
controller, the acknowledgment string was never returned to Adyen and
the endpoint was automatically disabled.

This commits adds a check on the existence of the source transaction to
allow discarding refund notifications if it is not found.

task-2704522

closes odoo/odoo#82291

X-original-commit: 06d79dc3d01079db27f16dc56212cf68635e8c5d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-01-06 08:35:07 +00:00
..