Subversion Repositories SmartDukaan

Rev

Rev 3561 | Rev 3903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3561 Rev 3616
Line 42... Line 42...
42
    private static final boolean SHOW_EBS_TEST_GATEWAY = Boolean.parseBoolean(resource.getString("show_ebs_test_gateway"));
42
    private static final boolean SHOW_EBS_TEST_GATEWAY = Boolean.parseBoolean(resource.getString("show_ebs_test_gateway"));
43
    
43
    
44
    private long addressId = -1;
44
    private long addressId = -1;
45
    private String totalAmount = "";
45
    private String totalAmount = "";
46
    private boolean showCodOption = true;
46
    private boolean showCodOption = true;
-
 
47
    private boolean showEmiOption = false;
47
    private String errorMsg = "";
48
    private String errorMsg = "";
48
    
49
    
49
    public String index(){
50
    public String index(){
50
        return processPaymentOptions();
51
        return processPaymentOptions();
51
    }
52
    }
Line 66... Line 67...
66
        }
67
        }
67
        return processPaymentOptions();
68
        return processPaymentOptions();
68
    }
69
    }
69
 
70
 
70
    private String processPaymentOptions() {
71
    private String processPaymentOptions() {
-
 
72
        String showEmiOptionStr = this.request.getParameter("showEmiOption");
-
 
73
        if(showEmiOptionStr!=null){
-
 
74
            try{
-
 
75
                showEmiOption = Boolean.parseBoolean(showEmiOptionStr);
-
 
76
            }catch(Exception e){
-
 
77
                logger.info("A non-boolean value passed for showing EMI option");
-
 
78
            }
-
 
79
        }
-
 
80
        
71
        UserClient userContextServiceClient = null;
81
        UserClient userContextServiceClient = null;
72
        in.shop2020.model.v1.user.UserContextService.Client userClient = null;
82
        in.shop2020.model.v1.user.UserContextService.Client userClient = null;
73
        
83
        
74
        Address address;
84
        Address address;
75
        List<Line> lineItems;
85
        List<Line> lineItems;
Line 157... Line 167...
157
    
167
    
158
    public boolean shouldShowCodOption() {
168
    public boolean shouldShowCodOption() {
159
        return showCodOption;
169
        return showCodOption;
160
    }
170
    }
161
 
171
 
-
 
172
    public boolean shouldShowEmiOption() {
-
 
173
        return showEmiOption;
-
 
174
    }
-
 
175
 
162
    public String getTotalAmount(){
176
    public String getTotalAmount(){
163
        return totalAmount;
177
        return totalAmount;
164
    }
178
    }
165
    
179
    
166
    public boolean shouldShowEbsTestGateway() {
180
    public boolean shouldShowEbsTestGateway() {