Skip to content
Snippets Groups Projects
Commit 100f2526 authored by Saurabh Choraria's avatar Saurabh Choraria
Browse files

[FIX] payment_{paypal,alipay}: update log for invalid notification origin


When the user configures PayPal/Alipay and in his PayPal/Alipay account he set
the IPN address to the webhook_url he receives a notification from PayPal/Alipay
with data. Then origin of that notification is checked and when PayPal/Alipay
sends 'invalid'/'false' as a response the error occurs.

To fix this issue the log is updated into a warning.

sentry-4116633764

closes odoo/odoo#121235

Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
parent d0dfa49a
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ class AlipayController(http.Controller):
else:
response_content = response.text
if response_content != 'true':
_logger.error(
_logger.warning(
"Alipay did not confirm the origin of the notification with data:\n%s", payload
)
raise Forbidden()
......
......@@ -202,7 +202,7 @@ class PaypalController(http.Controller):
else:
response_content = response.text
if response_content != 'VERIFIED':
_logger.error(
_logger.warning(
"PayPal did not confirm the origin of the notification with data:\n%s",
pprint.pformat(notification_data),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment