diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index a5307fca68..063782e1d2 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -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);