Subversion Repositories SmartDukaan

Rev

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

Rev 650 Rev 681
Line 12... Line 12...
12
import org.apache.struts2.convention.annotation.Result;
12
import org.apache.struts2.convention.annotation.Result;
13
import org.apache.struts2.convention.annotation.Results;
13
import org.apache.struts2.convention.annotation.Results;
14
import org.apache.thrift.TException;
14
import org.apache.thrift.TException;
15
 
15
 
16
@Results({
16
@Results({
-
 
17
    @Result(name="redirect", type="redirectAction", 
-
 
18
    		params = {"actionName" , "login"}),
17
	@Result(name="redirect", location="${url}", type="redirect")
19
	@Result(name="payredirect", location="${url}", type="redirect")
-
 
20
		
18
})
21
})
19
public class OrderController extends BaseController {
22
public class OrderController extends BaseController {
20
	
23
	
21
	private static final long serialVersionUID = 1L;
24
	private static final long serialVersionUID = 1L;
22
	
25
	
23
	private static Log log = LogFactory.getLog(OrderController.class);
26
	private static Log log = LogFactory.getLog(OrderController.class);
24
	private String id;
27
	private String id;
25
	
28
	
26
	private String message;
29
	private String message;
27
	
30
	
-
 
31
	private String paymentUrl="hdfc-pay";
-
 
32
	
28
	public OrderController(){
33
	public OrderController(){
29
		super();
34
		super();
30
	}
35
	}
31
	
36
	
32
    // GET /order/ orderid
37
    // GET /order/ orderid
Line 92... Line 97...
92
	
97
	
93
	public String getOrderDetailsSnippet(){
98
	public String getOrderDetailsSnippet(){
94
		return htmlSnippets.get("ORDER_DETAILS");
99
		return htmlSnippets.get("ORDER_DETAILS");
95
	}
100
	}
96
	
101
	
-
 
102
	public String getUrl(){
-
 
103
		return this.paymentUrl;
-
 
104
	}
97
	
105
	
98
	public String getMessage(){
106
	public String getMessage(){
99
		return this.message;
107
		return this.message;
100
	}
108
	}
101
 
109