From 1ee8871edacc119e8a2462571ed2b59c375523e5 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 3 Sep 2020 15:04:23 +0200 Subject: [PATCH] paybox: list platforms choices (#46323) --- eopayment/paybox.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eopayment/paybox.py b/eopayment/paybox.py index a00dd59..0962f23 100644 --- a/eopayment/paybox.py +++ b/eopayment/paybox.py @@ -200,8 +200,11 @@ class Payment(PaymentCommon): 'name': 'platform', 'caption': _('Plateforme cible'), 'default': 'test', - 'validation': lambda x: isinstance(x, six.string_types) - and x.lower() in ('test', 'prod'), + 'choices': ( + ('test', 'Test'), + ('backup', 'Backup'), + ('prod', 'Production'), + ) }, { 'name': 'site',