| 9269 |
amit.gupta |
1 |
package in.shop2020.mobileapi.serving.services;
|
| 9103 |
anupam.sin |
2 |
|
|
|
3 |
public interface IPaymentService {
|
|
|
4 |
public static final long PAYMENT_NOT_CREATED = -1;
|
|
|
5 |
|
|
|
6 |
public static final String HDFC_VISA = "2008";
|
|
|
7 |
public static final String HDFC_MASTERCARD_CREDIT = "2017";
|
|
|
8 |
public static final String HDFC_MASTERCARD_DEBIT = "2018";
|
|
|
9 |
public static final String HDFC_VISA_ELECTRON = "2000";
|
|
|
10 |
|
|
|
11 |
public static final String HDFC_EMI = "2020";
|
|
|
12 |
|
|
|
13 |
public static final String EBS_VISA = "1008";
|
|
|
14 |
public static final String EBS_MASTERCARD = "1017";
|
|
|
15 |
|
| 13286 |
amit.gupta |
16 |
public static final String PAYU_CC = "4001";
|
|
|
17 |
public static final String PAYU_DC = "4002";
|
|
|
18 |
public static final String PAYU_NB = "4003";
|
|
|
19 |
public static final String PAYU_PY = "4004";
|
| 9103 |
anupam.sin |
20 |
|
|
|
21 |
public static final String EMI_OPTIONS = "5000";
|
|
|
22 |
|
|
|
23 |
public static final String COD = "3000";
|
|
|
24 |
public static final String COUPON = "3001";
|
|
|
25 |
|
|
|
26 |
public static final String PAYMENT_METHOD = "payMethod";
|
|
|
27 |
|
|
|
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";
|
|
|
38 |
|
|
|
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 |
|
|
|
52 |
public long createPayment(long userId, long txnId, String paymentOption, int gatewayId);
|
|
|
53 |
}
|