Subversion Repositories SmartDukaan

Rev

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

Rev 2316 Rev 2334
Line 10... Line 10...
10
	public static final String EBS_VISA = "1008";
10
	public static final String EBS_VISA = "1008";
11
	public static final String EBS_MASTERCARD = "1017";
11
	public static final String EBS_MASTERCARD = "1017";
12
	
12
	
13
	public static final String PAYMENT_METHOD = "payMethod";
13
	public static final String PAYMENT_METHOD = "payMethod";
14
	
14
	
-
 
15
	public static final String STATUS = "status";
-
 
16
	public static final String GATEWAY_STATUS = "gatewayTxnStatus";
-
 
17
	public static final String ERR_CODE = "errorCode";
-
 
18
	public static final String ERROR = "error";
-
 
19
	
-
 
20
	public static final String CAPTURE_AUTH_ID = "CaptureAuthId";
-
 
21
	public static final String CAPTURE_REF_ID = "CatureRefId";
-
 
22
	public static final String CAPTURE_TXN_ID = "CaptureTxnId";
-
 
23
	public static final String CAPTURE_TIME = "CaptureTime";
-
 
24
	public static final String CAPTURE_AMNT = "CaptureAmount";
-
 
25
	
-
 
26
	enum Errors{
-
 
27
		CONN_FAILURE("-1", "Unable to initialize connection to the API server"),
-
 
28
		CAPTURE_FAILURE("-2", "Error while capturing payment");
-
 
29
		
-
 
30
		public final String code;
-
 
31
		public final String message;
-
 
32
		
-
 
33
		Errors(String code, String message){
-
 
34
			this.code = code;
-
 
35
			this.message = message;
-
 
36
		}
-
 
37
	}
-
 
38
	
15
	public long createPayment(long currentCartId, long userId, long txnId, String paymentOption);
39
	public long createPayment(long currentCartId, long userId, long txnId, String paymentOption);
16
}
40
}