Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
82115e56
Commit
82115e56
authored
Oct 25, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not convert dates.
In case of navigate the caller is responsible for providing date as text string.
parent
d09f5528
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_payzen_secure_payment/DocumentTemplateItem/PayzenService.py
...yzen_secure_payment/DocumentTemplateItem/PayzenService.py
+3
-5
bt5/erp5_payzen_secure_payment/bt/revision
bt5/erp5_payzen_secure_payment/bt/revision
+1
-1
No files found.
bt5/erp5_payzen_secure_payment/DocumentTemplateItem/PayzenService.py
View file @
82115e56
...
...
@@ -186,8 +186,7 @@ class PayzenService(XMLObject, PayzenSOAP):
"""See Payment Service Interface Documentation"""
pass
def
_getSignature
(
self
,
ob
,
sorted_key_list
,
output_date_format
=
'%Y-%m-%dT%H:%M:%S'
,
signature_date_format
=
'%Y%m%d'
):
def
_getSignature
(
self
,
ob
,
sorted_key_list
):
"""Calculates signature from ob
ob can be dict or getattr capable object
...
...
@@ -211,7 +210,7 @@ class PayzenService(XMLObject, PayzenSOAP):
v
=
''
elif
isinstance
(
v
,
datetime
.
datetime
):
# for sure date
v
=
v
.
strftime
(
signature_date_format
)
v
=
v
.
strftime
(
'%Y%m%d'
)
else
:
# anything else cast to string
v
=
str
(
v
)
...
...
@@ -230,8 +229,7 @@ class PayzenService(XMLObject, PayzenSOAP):
vads_version
=
self
.
getPayzenVadsVersion
()
)
# fetch all prepared vads_ values and remove them from dict
signature
=
self
.
_getSignature
(
payzen_dict
,
sorted
(
payzen_dict
.
keys
()),
'%Y%m%d%H%M%S'
,
'%Y%m%d%H%M%S'
)
signature
=
self
.
_getSignature
(
payzen_dict
,
sorted
(
payzen_dict
.
keys
()))
payzen_dict
[
'signature'
]
=
signature
field_list
=
[]
for
k
,
v
in
payzen_dict
.
iteritems
():
...
...
bt5/erp5_payzen_secure_payment/bt/revision
View file @
82115e56
42
\ No newline at end of file
43
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment