Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
2a85fcdf
Commit
2a85fcdf
authored
Oct 11, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return raw data too.
Also document method a bit.
parent
aa8c33dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
bt5/erp5_payzen_secure_payment/DocumentTemplateItem/PayzenService.py
...yzen_secure_payment/DocumentTemplateItem/PayzenService.py
+15
-1
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 @
2a85fcdf
...
@@ -13,7 +13,20 @@ except ImportError:
...
@@ -13,7 +13,20 @@ except ImportError:
else
:
else
:
import
time
import
time
class
PayzenSOAP
:
class
PayzenSOAP
:
"""SOAP communication
Methods are returning list of:
* parsed response
* sent XML
* received XML
SOAP protocol is assumed as untrusted and dangerous, users of those methods
are encouraged to log such messages for future debugging."""
def
soap_getInfo
(
self
,
transmissionDate
,
transactionId
):
def
soap_getInfo
(
self
,
transmissionDate
,
transactionId
):
"""Returns getInfo
transmissionDate is "raw" date in format YYYYMMDD, without any marks
transactionId is id of transaction for this date"""
client
=
suds
.
client
.
Client
(
self
.
wsdl_link
.
getUrlString
())
client
=
suds
.
client
.
Client
(
self
.
wsdl_link
.
getUrlString
())
sorted_keys
=
(
'shopId'
,
'transmissionDate'
,
'transactionId'
,
sorted_keys
=
(
'shopId'
,
'transmissionDate'
,
'transactionId'
,
'sequenceNb'
,
'ctxMode'
)
'sequenceNb'
,
'ctxMode'
)
...
@@ -35,7 +48,8 @@ else:
...
@@ -35,7 +48,8 @@ else:
signature
+=
str
(
v
)
+
'+'
signature
+=
str
(
v
)
+
'+'
signature
+=
self
.
getServicePassword
()
signature
+=
self
.
getServicePassword
()
kw
[
'wsSignature'
]
=
hashlib
.
sha1
(
signature
).
hexdigest
()
kw
[
'wsSignature'
]
=
hashlib
.
sha1
(
signature
).
hexdigest
()
return
client
.
service
.
getInfo
(
**
kw
)
data
=
client
.
service
.
getInfo
(
**
kw
)
return
[
data
,
str
(
client
.
last_sent
()),
str
(
client
.
last_received
())]
class
PayzenService
(
XMLObject
,
PayzenSOAP
):
class
PayzenService
(
XMLObject
,
PayzenSOAP
):
meta_type
=
'Payzen Service'
meta_type
=
'Payzen Service'
...
...
bt5/erp5_payzen_secure_payment/bt/revision
View file @
2a85fcdf
23
24
\ No newline at end of file
\ 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