You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error_msg='Lyra Collect: invalid signature for data {}'.format(post)
96
+
_logger.info(error_msg)
97
+
98
+
raiseValidationError(error_msg)
99
+
100
+
if (data.get('vads_trans_status') =='ABANDONED') or (data.get('vads_trans_status') =='CANCELED') and (data.get('vads_order_status') =='UNPAID') and (data.get('vads_order_cycle') =='CLOSED'):
101
+
return'Payment abandoned.'
62
102
63
-
# Handle the notification data
64
-
result._handle_notification_data('lyra', post)
65
-
exceptValidationError: #Acknowledge the notification to avoid getting spammed
103
+
# Handle the notification data.
104
+
result._handle_notification_data('lyra', data)
105
+
exceptValidationError: #Acknowledge the notification to avoid getting spammed.
66
106
_logger.exception("Lyra Collect: Unable to handle the IPN notification data; skipping to acknowledge.")
67
107
return'Bad request received.'
68
108
69
-
return'Accepted payment, order has been updated.'ifresultelse'Payment failure, order has been cancelled.'
109
+
return'Payment processed, order has been updated.'ifresultelse'An error occurred while processing payment.'
_logger.error("Error while creating form token: "+response.json().get("answer", {}).get("errorMessage") +"("+response.json().get("answer", {}).get("errorCode") +").")
0 commit comments