Skip to content

Commit 75030db

Browse files
committed
[FIX] pos_adyen: Add logger for Adyen
To fix problems with lost payments in Adyen we add loggers closes odoo#93923 X-original-commit: 8a9417f Signed-off-by: Quentin Lejeune (qle) <[email protected]>
1 parent b1f371d commit 75030db

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

addons/pos_adyen/controllers/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ def notification(self):
2828
payment_method.adyen_latest_diagnosis = data['SaleToPOIResponse']['MessageHeader']['ServiceID']
2929
else:
3030
payment_method.adyen_latest_response = json.dumps(data)
31+
_logger.info('notification writed from adyen\n%s', data)
3132
else:
3233
_logger.error('received a message for a terminal not registered in Odoo: %s', terminal_identifier)

addons/pos_adyen/models/pos_payment_method.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def _adyen_diagnosis_request_data(self, pos_config_name):
6868
}
6969

7070
def get_latest_adyen_status(self, pos_config_name):
71+
_logger.info('get_latest_adyen_status\n%s', pos_config_name)
7172
self.ensure_one()
7273

7374
# Poll the status of the terminal if there's no new

0 commit comments

Comments
 (0)