Subversion Repositories SmartDukaan

Rev

Rev 3616 | Rev 6050 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1905 chandransh 1
package in.shop2020.serving.services;
2
 
3
public interface IPaymentService {
4
	public static final long PAYMENT_NOT_CREATED = -1;
5
 
2316 chandransh 6
	public static final String HDFC_VISA = "2008";
5538 anupam.sin 7
	public static final String HDFC_MASTERCARD_CREDIT = "2017";
8
	public static final String HDFC_MASTERCARD_DEBIT = "2018";
2316 chandransh 9
	public static final String HDFC_VISA_ELECTRON = "2000";
10
 
3616 chandransh 11
	public static final String HDFC_EMI = "2020";
12
 
2159 chandransh 13
	public static final String EBS_VISA = "1008";
14
	public static final String EBS_MASTERCARD = "1017";
15
 
3054 chandransh 16
	public static final String COD = "3000";
17
 
2159 chandransh 18
	public static final String PAYMENT_METHOD = "payMethod";
19
 
2334 chandransh 20
	public static final String STATUS = "status";
21
	public static final String GATEWAY_STATUS = "gatewayTxnStatus";
22
	public static final String ERR_CODE = "errorCode";
23
	public static final String ERROR = "error";
24
 
25
	public static final String CAPTURE_AUTH_ID = "CaptureAuthId";
26
	public static final String CAPTURE_REF_ID = "CatureRefId";
27
	public static final String CAPTURE_TXN_ID = "CaptureTxnId";
28
	public static final String CAPTURE_TIME = "CaptureTime";
29
	public static final String CAPTURE_AMNT = "CaptureAmount";
30
 
31
	enum Errors{
32
		CONN_FAILURE("-1", "Unable to initialize connection to the API server"),
33
		CAPTURE_FAILURE("-2", "Error while capturing payment");
34
 
35
		public final String code;
36
		public final String message;
37
 
38
		Errors(String code, String message){
39
			this.code = code;
40
			this.message = message;
41
		}
42
	}
43
 
3561 rajveer 44
	public long createPayment(long currentCartId, long userId, long txnId, String paymentOption, long sourceId);
1905 chandransh 45
}