| 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 |
|
| 6060 |
rajveer |
16 |
public static final String PAYU_CC = "4000";
|
|
|
17 |
public static final String PAYU_DC = "4001";
|
|
|
18 |
public static final String PAYU_NB = "4002";
|
| 6390 |
rajveer |
19 |
|
|
|
20 |
public static final String EMI_OPTIONS = "5000";
|
| 6060 |
rajveer |
21 |
|
| 3054 |
chandransh |
22 |
public static final String COD = "3000";
|
| 7862 |
anupam.sin |
23 |
public static final String COUPON = "3001";
|
| 3054 |
chandransh |
24 |
|
| 2159 |
chandransh |
25 |
public static final String PAYMENT_METHOD = "payMethod";
|
| 8942 |
rajveer |
26 |
public static final String EMI_AMOUNT = "emiAmount";
|
| 2159 |
chandransh |
27 |
|
| 2334 |
chandransh |
28 |
public static final String STATUS = "status";
|
|
|
29 |
public static final String GATEWAY_STATUS = "gatewayTxnStatus";
|
|
|
30 |
public static final String ERR_CODE = "errorCode";
|
|
|
31 |
public static final String ERROR = "error";
|
|
|
32 |
|
|
|
33 |
public static final String CAPTURE_AUTH_ID = "CaptureAuthId";
|
|
|
34 |
public static final String CAPTURE_REF_ID = "CatureRefId";
|
|
|
35 |
public static final String CAPTURE_TXN_ID = "CaptureTxnId";
|
|
|
36 |
public static final String CAPTURE_TIME = "CaptureTime";
|
|
|
37 |
public static final String CAPTURE_AMNT = "CaptureAmount";
|
| 6390 |
rajveer |
38 |
|
| 2334 |
chandransh |
39 |
enum Errors{
|
|
|
40 |
CONN_FAILURE("-1", "Unable to initialize connection to the API server"),
|
|
|
41 |
CAPTURE_FAILURE("-2", "Error while capturing payment");
|
|
|
42 |
|
|
|
43 |
public final String code;
|
|
|
44 |
public final String message;
|
|
|
45 |
|
|
|
46 |
Errors(String code, String message){
|
|
|
47 |
this.code = code;
|
|
|
48 |
this.message = message;
|
|
|
49 |
}
|
|
|
50 |
}
|
|
|
51 |
|
| 6390 |
rajveer |
52 |
public long createPayment(long userId, long txnId, String paymentOption, int gatewayId);
|
| 1905 |
chandransh |
53 |
}
|