Correct operation to determine if the expiry date is an even number in the badExpireEvenProcessor method, was using divide instead of modulo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -3569,7 +3569,7 @@ public class PaymentGatewayServices {
|
||||
String lastNumberStr = expireDate.substring(expireDate.length() - 1);
|
||||
int lastNumber = Integer.parseInt(lastNumberStr);
|
||||
|
||||
if (lastNumber / 2.0 == 0.0) {
|
||||
if (lastNumber % 2.0 == 0.0) {
|
||||
return alwaysBadExpireProcessor(dctx, context);
|
||||
} else {
|
||||
return alwaysApproveProcessor(dctx, context);
|
||||
|
||||
Reference in New Issue
Block a user