Commit 4dafc187 authored by Rafael Monnerat's avatar Rafael Monnerat

payzen_secure_payment: return fields sorted in _getFieldList

See merge request !1746
parents f39ad5df 026a78ee
Pipeline #26921 failed with stage
in 0 seconds
...@@ -8,6 +8,7 @@ import base64 ...@@ -8,6 +8,7 @@ import base64
import datetime import datetime
import os import os
import time import time
import six
import requests import requests
from Products.ERP5Type.Core.Workflow import ValidationFailed from Products.ERP5Type.Core.Workflow import ValidationFailed
...@@ -153,12 +154,9 @@ class PayzenService(XMLObject, PayzenREST): ...@@ -153,12 +154,9 @@ class PayzenService(XMLObject, PayzenREST):
vads_version=self.getPayzenVadsVersion() vads_version=self.getPayzenVadsVersion()
) )
# fetch all prepared vads_ values and remove them from dict # fetch all prepared vads_ values and remove them from dict
signature = self._getSignature(payzen_dict, sorted(payzen_dict.keys())) signature = self._getSignature(payzen_dict, sorted(six.iterkeys(payzen_dict)))
payzen_dict['signature'] = signature payzen_dict['signature'] = signature
field_list = [] return sorted(six.iteritems(payzen_dict))
for k,v in payzen_dict.iteritems():
field_list.append((k, v))
return field_list
def navigate(self, page_template, payzen_dict, REQUEST=None, **kw): def navigate(self, page_template, payzen_dict, REQUEST=None, **kw):
"""Returns configured template used to do the payment""" """Returns configured template used to do the payment"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment