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)