Subversion Repositories SmartDukaan

Rev

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

Rev 8618 Rev 8650
Line 591... Line 591...
591
     * @throws PaymentException 
591
     * @throws PaymentException 
592
     */
592
     */
593
    private boolean captureAndUpdateEbsPayment(in.shop2020.payment.domain.Payment payment) throws PaymentException{
593
    private boolean captureAndUpdateEbsPayment(in.shop2020.payment.domain.Payment payment) throws PaymentException{
594
        Map<String, String> captureResult = EbsPaymentHandler.capturePayment(payment);
594
        Map<String, String> captureResult = EbsPaymentHandler.capturePayment(payment);
595
        String captureStatus = captureResult.get(EbsPaymentHandler.STATUS);
595
        String captureStatus = captureResult.get(EbsPaymentHandler.STATUS);
-
 
596
        for(String key : captureResult.keySet()) {
-
 
597
            logger.info("key : " + key + " value : " + captureResult.get(key));
-
 
598
        }
-
 
599
        
-
 
600
        logger.info("capture status : " + captureStatus);
596
        
601
        
597
        Map<String, String> attrMap = new HashMap<String, String>();
602
        Map<String, String> attrMap = new HashMap<String, String>();
598
        if("".equals(captureStatus)){
603
        if("".equals(captureStatus)){
599
            //Failure
604
            //Failure
600
            logger.error("Capture attempt failed for EBS payment with id: " + payment.getId());
605
            logger.error("Capture attempt failed for EBS payment with id: " + payment.getId());