Subversion Repositories SmartDukaan

Rev

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

Rev 6062 Rev 6390
Line 14... Line 14...
14
	public static final String EBS_MASTERCARD = "1017";
14
	public static final String EBS_MASTERCARD = "1017";
15
	
15
	
16
	public static final String PAYU_CC = "4000";
16
	public static final String PAYU_CC = "4000";
17
	public static final String PAYU_DC = "4001";
17
	public static final String PAYU_DC = "4001";
18
	public static final String PAYU_NB = "4002";
18
	public static final String PAYU_NB = "4002";
-
 
19
 
-
 
20
	public static final String EMI_OPTIONS = "5000";
19
	
21
	
20
	public static final String COD = "3000";
22
	public static final String COD = "3000";
21
	
23
	
22
	public static final String PAYMENT_METHOD = "payMethod";
24
	public static final String PAYMENT_METHOD = "payMethod";
23
	
25
	
Line 29... Line 31...
29
	public static final String CAPTURE_AUTH_ID = "CaptureAuthId";
31
	public static final String CAPTURE_AUTH_ID = "CaptureAuthId";
30
	public static final String CAPTURE_REF_ID = "CatureRefId";
32
	public static final String CAPTURE_REF_ID = "CatureRefId";
31
	public static final String CAPTURE_TXN_ID = "CaptureTxnId";
33
	public static final String CAPTURE_TXN_ID = "CaptureTxnId";
32
	public static final String CAPTURE_TIME = "CaptureTime";
34
	public static final String CAPTURE_TIME = "CaptureTime";
33
	public static final String CAPTURE_AMNT = "CaptureAmount";
35
	public static final String CAPTURE_AMNT = "CaptureAmount";
34
	
36
 
35
	enum Errors{
37
	enum Errors{
36
		CONN_FAILURE("-1", "Unable to initialize connection to the API server"),
38
		CONN_FAILURE("-1", "Unable to initialize connection to the API server"),
37
		CAPTURE_FAILURE("-2", "Error while capturing payment");
39
		CAPTURE_FAILURE("-2", "Error while capturing payment");
38
		
40
		
39
		public final String code;
41
		public final String code;
Line 43... Line 45...
43
			this.code = code;
45
			this.code = code;
44
			this.message = message;
46
			this.message = message;
45
		}
47
		}
46
	}
48
	}
47
	
49
	
48
	public long createPayment(long currentCartId, long userId, long txnId, String paymentOption, long sourceId);
50
	public long createPayment(long userId, long txnId, String paymentOption, int gatewayId);
49
}
51
}