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
Paul Graydon
slapos.core
Commits
45b052d6
Commit
45b052d6
authored
Jan 19, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_payzen: Update vads_order_id by including transaction_date
parent
9111e50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenWorkflow.py
...m/portal_components/test.erp5.testSlapOSPayzenWorkflow.py
+5
-2
No files found.
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenWorkflow.py
View file @
45b052d6
...
@@ -187,7 +187,8 @@ class TestSlapOSPayzenInterfaceWorkflow(SlapOSTestCaseMixinWithAbort):
...
@@ -187,7 +187,8 @@ class TestSlapOSPayzenInterfaceWorkflow(SlapOSTestCaseMixinWithAbort):
'vads_amount'
:
str
(
int
(
HARDCODED_PRICE
*
-
100
)),
'vads_amount'
:
str
(
int
(
HARDCODED_PRICE
*
-
100
)),
'vads_currency'
:
978
,
'vads_currency'
:
978
,
'vads_trans_id'
:
transaction_id
,
'vads_trans_id'
:
transaction_id
,
'vads_order_id'
:
transaction_id
,
'vads_order_id'
:
"%s-%s"
%
(
transaction_date
.
toZone
(
'UTC'
)
\
.
asdatetime
().
strftime
(
'%Y%m%d'
),
transaction_id
),
'vads_site_id'
:
'foo'
,
'vads_site_id'
:
'foo'
,
}
}
# Calculate the signature...
# Calculate the signature...
...
@@ -302,7 +303,9 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by P
...
@@ -302,7 +303,9 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by P
try
:
try
:
self
.
mockRestGetInfo
(
self
.
mockRestGetInfo
(
event
.
updateStatus
,
event
.
updateStatus
,
(
transaction_date
.
toZone
(
'UTC'
).
asdatetime
(),
transaction_id
),
(
transaction_date
.
toZone
(
'UTC'
).
asdatetime
(),
"%s-%s"
%
(
transaction_date
.
toZone
(
'UTC'
)
\
.
asdatetime
().
strftime
(
'%Y%m%d'
),
transaction_id
)),
(
mocked_data_kw
,
mocked_sent_text
,
mocked_received_text
),
(
mocked_data_kw
,
mocked_sent_text
,
mocked_received_text
),
)
)
finally
:
finally
:
...
...
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