Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5bfca6b4
authored
Dec 02, 2019
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create new stamp for eqch payment query. Checkout fill fail the query for multip…
…le requests with same stamp
1 parent
6262d1a9
Pipeline
#176
failed
in 0 seconds
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/checkout/CheckoutCreateQueryBuilder.java
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillEditView.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/checkout/CheckoutCreateQueryBuilder.java
View file @
5bfca6b
...
...
@@ -91,7 +91,7 @@ public class CheckoutCreateQueryBuilder extends CheckoutQueryBuilder {
final
StringBuilder
stamp
=
new
StringBuilder
();
stamp
.
append
(
bill
.
getId
());
stamp
.
append
(
STAMP_SPLITCHAR
);
stamp
.
append
(
bill
.
getSentDate
().
getTime
()
/
1000
);
stamp
.
append
(
System
.
currentTimeMillis
()
/
1000
);
return
stamp
.
toString
();
}
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillEditView.java
View file @
5bfca6b
...
...
@@ -88,7 +88,7 @@ public class BillEditView extends GenericCDIView {
public
boolean
getCheckoutFiV2Available
()
{
boolean
v2Enabled
=
eventbean
.
getPropertyBoolean
(
LanEventPropertyKey
.
KEYCHECKOUT_V2_ENABLED
);
return
v2Enabled
&&
bill
!=
null
&&
!
bill
.
isPaid
()
&&
checkout
b
ean
.
isPaymentEnabled
();
return
v2Enabled
&&
bill
!=
null
&&
!
bill
.
isPaid
()
&&
checkout
V2B
ean
.
isPaymentEnabled
();
}
public
boolean
isCheckoutFiAvailable
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment