Subversion Repositories SmartDukaan

Rev

Rev 2310 | Rev 2785 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2310 Rev 2492
Line 201... Line 201...
201
                PaymentGateway gateway = gateWays.get(payment.getGatewayId());
201
                PaymentGateway gateway = gateWays.get(payment.getGatewayId());
202
                if(gateway == null) {
202
                if(gateway == null) {
203
                    try {
203
                    try {
204
                        gateway = pClient.getPaymentGateway(payment.getGatewayId());
204
                        gateway = pClient.getPaymentGateway(payment.getGatewayId());
205
                        gateWays.put(payment.getGatewayId(), gateway);
205
                        gateWays.put(payment.getGatewayId(), gateway);
206
                    } catch (PaymentException e) {
206
                    } catch (Exception e) {
207
                        e.printStackTrace();
207
                        e.printStackTrace();
208
                    }
208
                    }
209
                }
209
                }
210
                contentRow.createCell(GATEWAY).setCellValue(gateway != null ? gateway.getName() : payment.getGatewayId()+"");
210
                contentRow.createCell(GATEWAY).setCellValue(gateway != null ? gateway.getName() : payment.getGatewayId()+"");
211
                //contentRow.createCell(GATEWAY).setCellValue(payment.getGatewayId());
211
                //contentRow.createCell(GATEWAY).setCellValue(payment.getGatewayId());