Subversion Repositories SmartDukaan

Rev

Rev 12978 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12978 Rev 12985
Line 34... Line 34...
34
 
34
 
35
    //private boolean isShooglooAff  = false;
35
    //private boolean isShooglooAff  = false;
36
    
36
    
37
    private static Map<Long,String> allProviders;
37
    private static Map<Long,String> allProviders;
38
    private static List<Long> asyncOperators = Arrays.asList(9l);
38
    private static List<Long> asyncOperators = Arrays.asList(9l);
39
    private boolean rechargeModeSynchronous = false;
39
    private boolean rechargeModeAsynchronous = false;
40
    private String rechargeOrderId;
40
    private String rechargeOrderId;
41
    private String isFinal;
41
    private String isFinal;
42
    private String newStatus;
42
    private String newStatus;
43
 
43
 
44
    public String getIsFinal() {
44
    public String getIsFinal() {
Line 208... Line 208...
208
                    " Saholic.com please use your username and password to Login.<br> In case you are " +
208
                    " Saholic.com please use your username and password to Login.<br> In case you are " +
209
                    "a first time user, we have sent your login details on the emailId you gave us. " +
209
                    "a first time user, we have sent your login details on the emailId you gave us. " +
210
                    "<br>For more information <a href='/static/recharge-faq'>click here</a>"};
210
                    "<br>For more information <a href='/static/recharge-faq'>click here</a>"};
211
    	    }
211
    	    }
212
    	    else{
212
    	    else{
213
    	        setRechargeModeSynchronous(true);
213
    	        setRechargeModeAsynchronous(true);
214
    	        return new String[]{"green", "RECHARGE IN PROCESS", "Your Payment is successful.We have put your recharge under process." +
214
    	        return new String[]{"green", "RECHARGE IN PROCESS", "Your Payment is successful.We have put your recharge under process." +
215
                        "Please wait while we check with the operator.<b>Please do not close</b> this window or click the Back button on your browser.<br>"};
215
                        "Please wait while we check with the operator.<b>Please do not close</b> this window or click the Back button on your browser.<br>"};
216
    	    }
216
    	    }
217
    	}
217
    	}
218
    	else if (status.equals(RechargeOrderStatus.RECHARGE_FAILED) || status.equals(RechargeOrderStatus.RECHARGE_FAILED_REFUNDED)){
218
    	else if (status.equals(RechargeOrderStatus.RECHARGE_FAILED) || status.equals(RechargeOrderStatus.RECHARGE_FAILED_REFUNDED)){
Line 277... Line 277...
277
        RechargeOrder t_rechargeOrder = transactionServiceClient.getClient().getRcgOrderStatus(Long.valueOf(rechargeOrderId), Boolean.valueOf(isFinal));
277
        RechargeOrder t_rechargeOrder = transactionServiceClient.getClient().getRcgOrderStatus(Long.valueOf(rechargeOrderId), Boolean.valueOf(isFinal));
278
        setNewStatus(t_rechargeOrder.getStatus().name());
278
        setNewStatus(t_rechargeOrder.getStatus().name());
279
        return "recharge-status";
279
        return "recharge-status";
280
    }
280
    }
281
 
281
 
282
    public void setRechargeModeSynchronous(boolean rechargeModeSynchronous) {
282
    public void setRechargeModeAsynchronous(boolean rechargeModeAsynchronous) {
283
        this.rechargeModeSynchronous = rechargeModeSynchronous;
283
        this.rechargeModeAsynchronous = rechargeModeAsynchronous;
284
    }
284
    }
285
 
285
 
286
    public boolean isRechargeModeSynchronous() {
286
    public boolean isRechargeModeAsynchronous() {
287
        return rechargeModeSynchronous;
287
        return rechargeModeAsynchronous;
288
    }
288
    }
289
    
289
    
290
    public String getRechargeOrderId() {
290
    public String getRechargeOrderId() {
291
        return rechargeOrderId;
291
        return rechargeOrderId;
292
    }
292
    }