From b4cc0e71d4853fe39a4f0b7c0c132681fe9b0cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 26 Mar 2018 09:39:28 +0200 Subject: [PATCH] python3: don't use leading 0 in integers --- eopayment/systempayv2.py | 10 +++++----- 1 file 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),