summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-09-28 13:40:18 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-09-28 13:40:18 (GMT)
commit4b7824a996b81ffe21f00b2fbf4fd0cd0a82976d (patch)
tree32413b58c9f8840340556b05298175c9548326bf
parente2ec0860ccb2fff4fddd7cddaabcb75da831bf64 (diff)
downloadeopayment-4b7824a996b81ffe21f00b2fbf4fd0cd0a82976d.zip
eopayment-4b7824a996b81ffe21f00b2fbf4fd0cd0a82976d.tar.gz
eopayment-4b7824a996b81ffe21f00b2fbf4fd0cd0a82976d.tar.bz2
systempayv2: use SHA-1 algorithm by default (#47094)v1.58hotfix/v1.57
-rw-r--r--eopayment/systempayv2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index 99f1cb4..6f6b869 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -244,6 +244,7 @@ class Payment(PaymentCommon):
'''
service_url = "https://paiement.systempay.fr/vads-payment/"
+ signature_algo = 'sha1'
description = {
'caption': 'SystemPay, système de paiment du groupe BPCE',
@@ -274,7 +275,7 @@ class Payment(PaymentCommon):
'validation': lambda value: str.isalnum(value), },
{'name': 'signature_algo',
'caption': _(u'Algorithme de signature'),
- 'default': 'hmac_sha256',
+ 'default': 'sha1',
'choices': (
('sha1', 'SHA-1'),
('hmac_sha256', 'HMAC-SHA-256'),