Subversion Repositories SmartDukaan

Rev

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

Rev 6091 Rev 6215
Line 44... Line 44...
44
	
44
	
45
	private static String mode;
45
	private static String mode;
46
	
46
	
47
	private static String ebsSecretKey;
47
	private static String ebsSecretKey;
48
	
48
	
-
 
49
	private String phone;//This is used for recharge orders.
-
 
50
	
49
	static{
51
	static{
50
		try {
52
		try {
51
			accountId = ConfigClient.getClient().get("ebs_account_id");
53
			accountId = ConfigClient.getClient().get("ebs_account_id");
52
			returnUrl = ConfigClient.getClient().get("ebs_return_url");
54
			returnUrl = ConfigClient.getClient().get("ebs_return_url");
53
			mode = ConfigClient.getClient().get("ebs_pay_mode");
55
			mode = ConfigClient.getClient().get("ebs_pay_mode");
Line 152... Line 154...
152
            address = userClient.getClient().getAddressById(addressId);
154
            address = userClient.getClient().getAddressById(addressId);
153
        } catch (Exception e) {
155
        } catch (Exception e) {
154
            log.error("Unable to get address to put in billing details");
156
            log.error("Unable to get address to put in billing details");
155
            e.printStackTrace();
157
            e.printStackTrace();
156
        }
158
        }
157
        this.billingDetails = new ContactDetails(address.getName(),
159
        this.billingDetails = new ContactDetails("",
158
                rechargeOrder.getUserEmailId(), address.getLine1(),
160
                rechargeOrder.getUserEmailId(), "",
159
                address.getCity(), address.getState(),
161
                "", "",
160
                address.getPin(), "IND",
162
                "", "IND",
161
                address.getPhone());
163
                getPhone());
162
        
164
        
163
        log.info(billingDetails);
165
        log.info("Billing details of recharge order " + rechargeOrder.getDisplayId() + " : " + billingDetails);
164
        
166
        
165
        return "show";
167
        return "show";
166
    }
168
    }
167
 
169
 
168
	public String getDescription(){
170
	public String getDescription(){
Line 244... Line 246...
244
	
246
	
245
	public ContactDetails getBillingDetails() {
247
	public ContactDetails getBillingDetails() {
246
		return billingDetails;
248
		return billingDetails;
247
	}
249
	}
248
 
250
 
-
 
251
	public void setPhone(String phone) {
-
 
252
        this.phone = phone;
-
 
253
    }
-
 
254
 
-
 
255
 
-
 
256
    public String getPhone() {
-
 
257
        return phone;
-
 
258
    }
-
 
259
 
249
	public static class ContactDetails{
260
    public static class ContactDetails{
250
		private String name;
261
		private String name;
251
		private String email;
262
		private String email;
252
		private String address;
263
		private String address;
253
		private String city;
264
		private String city;
254
		private String state;
265
		private String state;