Subversion Repositories SmartDukaan

Rev

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