Subversion Repositories SmartDukaan

Rev

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

Rev 26522 Rev 26863
Line 36... Line 36...
36
	private String applicationWebUrl;
36
	private String applicationWebUrl;
37
 
37
 
38
	@Value("${this.app.url}")
38
	@Value("${this.app.url}")
39
	private String thisApplicationUrl;
39
	private String thisApplicationUrl;
40
	
40
	
41
	private static String salt;
41
	private static String salt="UNUSED";
42
	
42
	
43
	private static String postActionUrl;
43
	private static String postActionUrl;
44
	
44
	
45
	static{
-
 
46
		try {
-
 
47
			ConfigClient client = ConfigClient.getClient();
-
 
48
			accountId = client.get("payu_account_id");
-
 
49
			salt = client.get("payu_secret_key");
-
 
50
			postActionUrl = client.get("payu_post_url");
-
 
51
			//"https://test.payu.in/_payment";
-
 
52
		} catch (Exception e) {
-
 
53
			log.error("Unable to get PayU payment configuration.");
-
 
54
		}
-
 
55
	}
-
 
56
		
45
		
57
 
46
 
58
	public PayuPayPojo getPayuParams(long paymentId) throws Exception{
47
	public PayuPayPojo getPayuParams(long paymentId) throws Exception{
59
		PaymentClient paymentServiceClient = new PaymentClient();
48
		PaymentClient paymentServiceClient = new PaymentClient();
60
		Payment payment = paymentServiceClient.getClient().getPayment(paymentId);
49
		Payment payment = paymentServiceClient.getClient().getPayment(paymentId);