| Line 19... |
Line 19... |
| 19 |
public static final String DATE_TIME = "dateTime";
|
19 |
public static final String DATE_TIME = "dateTime";
|
| 20 |
public static final String MODE = "mode";
|
20 |
public static final String MODE = "mode";
|
| 21 |
public static final String REF_NO = "referenceNo";
|
21 |
public static final String REF_NO = "referenceNo";
|
| 22 |
public static final String TXN_TYPE = "transactionType";
|
22 |
public static final String TXN_TYPE = "transactionType";
|
| 23 |
|
23 |
|
| 24 |
private static int gatewayId=7;
|
- |
|
| 25 |
private long paymentId;
|
24 |
private long paymentId;
|
| 26 |
|
25 |
|
| 27 |
@Override
|
26 |
@Override
|
| 28 |
public long createPayment(long currentCartId, long userId, long txnId, String paymentOption, long sourceId){
|
27 |
public long createPayment(long userId, long txnId, String paymentOption, int gatewayId){
|
| 29 |
log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through EBS");
|
28 |
log.info("Creating payment for the txn#: " + txnId + " for the user: " + userId + " for processing through EBS");
|
| 30 |
CommonPaymentService cps = new CommonPaymentService();
|
29 |
CommonPaymentService cps = new CommonPaymentService();
|
| 31 |
if(!cps.createPayment(currentCartId, userId, txnId, gatewayId, sourceId)){
|
30 |
if(!cps.createPayment(userId, txnId, gatewayId)){
|
| 32 |
log.error("Error while creating the basic payment");
|
31 |
log.error("Error while creating the basic payment");
|
| 33 |
return PAYMENT_NOT_CREATED;
|
32 |
return PAYMENT_NOT_CREATED;
|
| 34 |
}
|
33 |
}
|
| 35 |
paymentId = cps.getPaymentId();
|
34 |
paymentId = cps.getPaymentId();
|
| 36 |
|
35 |
|