| Line 83... |
Line 83... |
| 83 |
long txnId = payment.getMerchantTxnId();
|
83 |
long txnId = payment.getMerchantTxnId();
|
| 84 |
TransactionClient transactionServiceClient = new TransactionClient();
|
84 |
TransactionClient transactionServiceClient = new TransactionClient();
|
| 85 |
in.shop2020.model.v1.order.TransactionService.Client txnClient = transactionServiceClient.getClient();
|
85 |
in.shop2020.model.v1.order.TransactionService.Client txnClient = transactionServiceClient.getClient();
|
| 86 |
Transaction transaction = txnClient.getTransaction(txnId);
|
86 |
Transaction transaction = txnClient.getTransaction(txnId);
|
| 87 |
order = transaction.getOrders().get(0);
|
87 |
order = transaction.getOrders().get(0);
|
| 88 |
Map<Long, Double> miscCharges = txnClient.getMiscCharges(txnId);
|
88 |
// Map<Long, Double> miscCharges = txnClient.getMiscCharges(txnId);
|
| 89 |
System.out.println(miscCharges);
|
89 |
// System.out.println(miscCharges);
|
| 90 |
if(miscCharges != null & !miscCharges.isEmpty()){
|
90 |
// if(miscCharges != null & !miscCharges.isEmpty()){
|
| 91 |
emiAmount = miscCharges.get(1L);
|
91 |
// emiAmount = miscCharges.get(1L);
|
| 92 |
}
|
92 |
// }
|
| 93 |
} catch (Exception e) {
|
93 |
} catch (Exception e) {
|
| 94 |
log.error("Error while getting transaction information", e);
|
94 |
log.error("Error while getting transaction information", e);
|
| 95 |
addActionError("We are experiencing some problems. Please try later.");
|
95 |
addActionError("We are experiencing some problems. Please try later.");
|
| 96 |
return "shipping-redirect";
|
96 |
return "shipping-redirect";
|
| 97 |
}
|
97 |
}
|