Subversion Repositories SmartDukaan

Rev

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

Rev 517 Rev 693
Line 29... Line 29...
29
	
29
	
30
	public PayErrorController(){
30
	public PayErrorController(){
31
		try {
31
		try {
32
			pclient = new PaymentServiceClient();
32
			pclient = new PaymentServiceClient();
33
		} catch (Exception e) {
33
		} catch (Exception e) {
34
			// TODO Auto-generated catch block
-
 
35
			e.printStackTrace();
34
			e.printStackTrace();
36
		}
35
		}
37
	}
36
	}
38
	
37
	
39
	public HttpHeaders show(){
38
	public String index(){
40
		amount = this.request.getParameter(AMOUNT);
39
		amount = this.request.getParameter(AMOUNT);
41
		paymentId = this.request.getParameter(PAYMENTID);
40
		paymentId = this.request.getParameter(PAYMENTID);
42
		trackId = this.request.getParameter(TRACKID);
41
		trackId = this.request.getParameter(TRACKID);
43
		result = this.request.getParameter(RESULT);
42
		result = this.request.getParameter(RESULT);
44
		
43
		
45
		return new DefaultHttpHeaders("err");
44
		return "";
46
	}
45
	}
47
	
46
	
48
	public String getErrorText(){
47
	public String getErrorText(){
49
		return result;
48
		return result;
50
	}
49
	}