Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
cb6a3fce
Commit
cb6a3fce
authored
Dec 30, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_payzen: Fixup typo and increase verbose on failures to connect to Payzen
parent
18c60ac7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PayzenEvent_processUpdate.py
...m/portal_skins/slapos_payzen/PayzenEvent_processUpdate.py
+4
-2
No files found.
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PayzenEvent_processUpdate.py
View file @
cb6a3fce
...
...
@@ -18,7 +18,7 @@ isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPos
status
=
data_kw
[
'status'
]
answer
=
data_kw
[
'answer'
]
if
status
!=
"SUCCESS"
:
error_code
=
answer
[
"error
_c
ode"
]
error_code
=
answer
[
"error
C
ode"
]
if
error_code
==
"PSP_010"
:
# Transaction Not Found
# Mark on payment transaction history log that transaction was not processed yet
...
...
@@ -36,7 +36,9 @@ if status != "SUCCESS":
return
else
:
# Unknown errorCode
payzen_event
.
confirm
(
comment
=
'Unknown errorCode %r'
%
error_code
)
# https://payzen.io/pt-BR/rest/V4.0/api/errors-reference.html
error_message
=
answer
.
get
(
'errorMessage'
,
''
)
payzen_event
.
confirm
(
comment
=
'Unknown errorCode %r, message: %s'
%
(
error_code
,
error_message
))
return
transaction_list
=
answer
[
"transactions"
]
...
...
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