diff --git a/eopayment/dummy.py b/eopayment/dummy.py index e823f12..cf36690 100644 --- a/eopayment/dummy.py +++ b/eopayment/dummy.py @@ -91,8 +91,11 @@ class Payment(PaymentCommon): { 'name': 'siret', 'caption': 'dummy siret parameter', + 'validation': lambda x: x.isdigit(), + 'validation_err_msg': 'must be a number', 'type': str, - 'default': 'siret', + 'default': '1234', + 'required': True, }, { 'name': 'consider_all_response_signed', @@ -104,6 +107,22 @@ class Payment(PaymentCommon): 'type': bool, 'default': False, }, + { + 'name': 'number', + 'caption': 'dummy integer input test', + 'type': int, + }, + { + 'name': 'choice', + 'caption': 'dummy choice input test', + 'choices': ['a', 'b'], + }, + { + 'name': 'choices', + 'caption': 'dummy choices input test', + 'choices': ['a', 'b'], + 'type': list, + }, { 'name': 'direct_notification_url', 'caption': 'direct notification url (replaced by automatic_return_url)',