Subversion Repositories SmartDukaan

Rev

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

Rev 21410 Rev 21452
Line 39... Line 39...
39
	
39
	
40
	private static String salt;
40
	private static String salt;
41
	
41
	
42
	private static String postActionUrl;
42
	private static String postActionUrl;
43
	
43
	
44
	private String phone;//This is used for recharge orders of value less than 1000.
-
 
45
	private String resultJson;//This is used for recharge orders of value less than 1000.
-
 
46
	
-
 
47
	static{
44
	static{
48
		try {
45
		try {
49
			ConfigClient client = ConfigClient.getClient();
46
			ConfigClient client = ConfigClient.getClient();
50
			accountId = client.get("payu_account_id");
47
			accountId = client.get("payu_account_id");
51
			salt = client.get("payu_secret_key");
48
			salt = client.get("payu_secret_key");
Line 169... Line 166...
169
			sb.append(Integer.toString((mdbytes[i] & 0xff) + 0x100, 16).substring(1));
166
			sb.append(Integer.toString((mdbytes[i] & 0xff) + 0x100, 16).substring(1));
170
		}
167
		}
171
		return sb.toString();
168
		return sb.toString();
172
	}
169
	}
173
 
170
 
174
	public void setPhone(String phone) {
-
 
175
		this.phone = phone;
-
 
176
	}
-
 
177
 
-
 
178
	public String getPhone() {
-
 
179
		return phone;
-
 
180
	}
-
 
181
	
-
 
182
    public void setResultJson(String resultJson) {
-
 
183
		this.resultJson = resultJson;
-
 
184
	}
-
 
185
 
-
 
186
	public String getResultJson() {
-
 
187
		log.info(resultJson);
-
 
188
		return resultJson;
-
 
189
	}
-
 
190
 
-
 
191
	public static class ContactDetails{
171
	public static class ContactDetails{
192
		private String name;
172
		private String name;
193
		private String email;
173
		private String email;
194
		private String address;
174
		private String address;
195
		private String city;
175
		private String city;