summaryrefslogtreecommitdiff
path: root/addons/payment_sips/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/payment_sips/controllers/main.py')
-rw-r--r--addons/payment_sips/controllers/main.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/payment_sips/controllers/main.py b/addons/payment_sips/controllers/main.py
index 6f268170485..1a9f99fa701 100644
--- a/addons/payment_sips/controllers/main.py
+++ b/addons/payment_sips/controllers/main.py
@@ -26,14 +26,12 @@ class SipsController(http.Controller):
_logger.warning('Sips: data are corrupted')
return False
- @http.route([
- '/payment/sips/ipn/'],
- type='http', auth='public', methods=['POST'], csrf=False)
+ @http.route('/payment/sips/ipn/', type='http', auth='public', methods=['POST'], csrf=False)
def sips_ipn(self, **post):
""" Sips IPN. """
_logger.info('Beginning Sips IPN form_feedback with post data %s', pprint.pformat(post)) # debug
if not post:
- # SIPS sometimes send empty notification, the reason why is
+ # SIPS sometimes sends empty notifications, the reason why is
# unclear but they tend to pollute logs and do not provide any
# meaningful information; log as a warning instead of a traceback
_logger.warning('Sips: received empty notification; skip.')
@@ -41,8 +39,7 @@ class SipsController(http.Controller):
self.sips_validate_data(**post)
return ''
- @http.route([
- '/payment/sips/dpn'], type='http', auth="public", methods=['POST'], csrf=False)
+ @http.route('/payment/sips/dpn', type='http', auth="public", methods=['POST'], csrf=False)
def sips_dpn(self, **post):
""" Sips DPN """
try: