From 8941ab4aebadf69f12e96894cf2d9b5d2d3e3ceb Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 13 May 2016 16:48:17 +0200 Subject: [PATCH] tipi: define payment type in backend parameters --- eopayment/tipi.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eopayment/tipi.py b/eopayment/tipi.py index 13f6fd0..3a3b571 100644 --- a/eopayment/tipi.py +++ b/eopayment/tipi.py @@ -51,6 +51,12 @@ class Payment(PaymentCommon): 'caption': _('Automatic return URL'), 'required': True, }, + { + 'name': 'saisie', + 'caption': _('Payment type'), + 'required': True, + 'default': 'T', + }, ], } @@ -110,6 +116,8 @@ class Payment(PaymentCommon): except Exception, e: raise ValueError('MEL is not a valid email, %r' % mel, e) + saisie = saisie or self.saisie + if saisie not in ('M', 'T', 'X', 'A'): raise ValueError('SAISIE invalid format, %r, must be M, T, X or A' % saisie)