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:
Scott Gray
2012-11-08 10:38:50 +00:00
parent 3717bc137b
commit d8dcd7e690
@@ -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);