summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-26 07:39:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-25 08:13:27 (GMT)
commitb4cc0e71d4853fe39a4f0b7c0c132681fe9b0cb0 (patch)
treef758a169998fd9a83704f62b69f2f579d6da47d0
parentfbf3ebf34d07d5070e8e4a7b9b5e490c52383836 (diff)
downloadeopayment-b4cc0e71d4853fe39a4f0b7c0c132681fe9b0cb0.zip
eopayment-b4cc0e71d4853fe39a4f0b7c0c132681fe9b0cb0.tar.gz
eopayment-b4cc0e71d4853fe39a4f0b7c0c132681fe9b0cb0.tar.bz2
python3: don't use leading 0 in integers
-rw-r--r--eopayment/systempayv2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index d9153a4..66ea38e 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -117,20 +117,20 @@ PARAMETERS = [
'ONEY_SANDBOX, PAYPAL, PAYPAL_SB, PAYSAFECARD, '
'VISA')),
# must be SINGLE or MULTI with parameters
- Parameter('vads_payment_config', '', 07, default='SINGLE',
+ Parameter('vads_payment_config', '', 7, default='SINGLE',
choices=('SINGLE', 'MULTI'), needed=True),
Parameter('vads_return_mode', None, 48, default='GET',
choices=('', 'NONE', 'POST', 'GET')),
Parameter('signature', 'an', None, length=40),
- Parameter('vads_site_id', 'n', 02, length=8, needed=True,
+ Parameter('vads_site_id', 'n', 2, length=8, needed=True,
description=_(u'Identifiant de la boutique')),
Parameter('vads_theme_config', 'ans', 32, max_length=255),
- Parameter(VADS_TRANS_DATE, 'n', 04, length=14, needed=True,
+ Parameter(VADS_TRANS_DATE, 'n', 4, length=14, needed=True,
default=isonow),
- Parameter('vads_trans_id', 'n', 03, length=6, needed=True),
+ Parameter('vads_trans_id', 'n', 3, length=6, needed=True),
Parameter('vads_validation_mode', 'n', 5, max_length=1, choices=('', 0, 1),
default=''),
- Parameter('vads_version', 'an', 01, default='V2', needed=True,
+ Parameter('vads_version', 'an', 1, default='V2', needed=True,
choices=('V2',)),
Parameter('vads_url_success', 'ans', 24, max_length=127),
Parameter('vads_url_referral', 'ans', 26, max_length=127),