Subversion Repositories SmartDukaan

Rev

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

Rev 2511 Rev 2692
Line 44... Line 44...
44
		}
44
		}
45
	}
45
	}
46
	
46
	
47
	public String index() throws IOException, SecurityException, PaymentException, TException, TransactionServiceException{
47
	public String index() throws IOException, SecurityException, PaymentException, TException, TransactionServiceException{
48
		this.message = "Payment failed at the payment gateway. Please pay again.";
48
		this.message = "Payment failed at the payment gateway. Please pay again.";
-
 
49
		String merchantPaymentIdString = this.request.getParameter("paymentId");
-
 
50
		if(merchantPaymentIdString!=null){
-
 
51
			merchantPaymentId = Long.parseLong(merchantPaymentIdString);
49
		
52
		}
50
    	merchantPaymentId = Long.parseLong(this.request.getParameter("paymentId"));
-
 
51
    	DataLogger.logData(EventType.PAYMENT_FAILURE, session.getId(), userinfo.getUserId(), userinfo.getEmail(),  Long.toString(merchantPaymentId));
53
    	DataLogger.logData(EventType.PAYMENT_FAILURE, session.getId(), userinfo.getUserId(), userinfo.getEmail(),  Long.toString(merchantPaymentId));
52
    	return "index";
54
    	return "index";
53
	}
55
	}
54
	
56
	
55
	
57