tipi: define payment type in backend parameters
This commit is contained in:
parent
e1b419b2d6
commit
8941ab4aeb
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue