diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-05-15 17:27:24 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-08-20 23:25:54 +0200 |
| commit | 481a00dc4b82bc1b2cbbd6079a147fe230ac57bd (patch) | |
| tree | 975b178f4e4a3733b904bd511d905160014ec009 /addons/payment_sips/models | |
| parent | 9d83784f1df18306b6166fd92a0573f39bf6262d (diff) | |
[FIX] P3: hash/hmac payload must be bytes
Diffstat (limited to 'addons/payment_sips/models')
| -rw-r--r-- | addons/payment_sips/models/payment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_sips/models/payment.py b/addons/payment_sips/models/payment.py index f01c59d1880..a6c9b390eae 100644 --- a/addons/payment_sips/models/payment.py +++ b/addons/payment_sips/models/payment.py @@ -66,7 +66,7 @@ class AcquirerSips(models.Model): if self.environment == 'prod': key = getattr(self, 'sips_secret') - shasign = sha256(data + key) + shasign = sha256((data + key).encode('utf-8')) return shasign.hexdigest() @api.multi |
