[FIX] paypal: no spurious warning about IPN version
In addition to being mostly useless because Paypal's API changes are supposed to be backwards-compatible, this warning was using inconsistent version numbers. Switched to a simple INFO line with IPN version.
This commit is contained in:
parent
880e951f34
commit
ffdfadfc91
|
@ -203,11 +203,7 @@ class TxPaypal(osv.Model):
|
||||||
|
|
||||||
def _paypal_form_get_invalid_parameters(self, cr, uid, tx, data, context=None):
|
def _paypal_form_get_invalid_parameters(self, cr, uid, tx, data, context=None):
|
||||||
invalid_parameters = []
|
invalid_parameters = []
|
||||||
if data.get('notify_version')[0] != '3.4':
|
_logger.info('Received a notification from Paypal with IPN version %s', data.get('notify_version'))
|
||||||
_logger.warning(
|
|
||||||
'Received a notification from Paypal with version %s instead of 2.6. This could lead to issues when managing it.' %
|
|
||||||
data.get('notify_version')
|
|
||||||
)
|
|
||||||
if data.get('test_ipn'):
|
if data.get('test_ipn'):
|
||||||
_logger.warning(
|
_logger.warning(
|
||||||
'Received a notification from Paypal using sandbox'
|
'Received a notification from Paypal using sandbox'
|
||||||
|
|
Loading…
Reference in New Issue