| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.config.ConfigException;
|
3 |
import in.shop2020.config.ConfigException;
|
| 4 |
import in.shop2020.datalogger.EventType;
|
4 |
import in.shop2020.datalogger.EventType;
|
| - |
|
5 |
import in.shop2020.model.v1.order.RechargeOrder;
|
| 5 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
6 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
| 6 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
7 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
| 7 |
import in.shop2020.payments.Attribute;
|
8 |
import in.shop2020.payments.Attribute;
|
| 8 |
import in.shop2020.payments.Payment;
|
9 |
import in.shop2020.payments.Payment;
|
| 9 |
import in.shop2020.payments.PaymentException;
|
10 |
import in.shop2020.payments.PaymentException;
|
| Line 132... |
Line 133... |
| 132 |
log.error("Unable to mark the payment as authorized", e);
|
133 |
log.error("Unable to mark the payment as authorized", e);
|
| 133 |
}
|
134 |
}
|
| 134 |
|
135 |
|
| 135 |
if(payment.isIsDigital()) {
|
136 |
if(payment.isIsDigital()) {
|
| 136 |
try {
|
137 |
try {
|
| - |
|
138 |
RechargeOrder rechargeOrder = transactionServiceClient.getClient().getRechargeOrdersForTransaction(txnId);
|
| 137 |
transactionServiceClient.getClient().updateRechargeOrderStatus(txnId, RechargeOrderStatus.PAYMENT_SUCCESSFUL);
|
139 |
transactionServiceClient.getClient().updateRechargeOrderStatus(rechargeOrder.getId(), RechargeOrderStatus.PAYMENT_SUCCESSFUL);
|
| 138 |
} catch (Exception e) {
|
140 |
} catch (Exception e) {
|
| 139 |
// TODO Auto-generated catch block
|
141 |
// TODO Auto-generated catch block
|
| 140 |
e.printStackTrace();
|
142 |
e.printStackTrace();
|
| 141 |
}
|
143 |
}
|
| 142 |
this.redirectUrl = rechargeResultUri + "?paymentId=" + merchantPaymentId;
|
144 |
this.redirectUrl = rechargeResultUri + "?paymentId=" + merchantPaymentId;
|