Subversion Repositories SmartDukaan

Rev

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

Rev 8907 Rev 8914
Line 927... Line 927...
927
            ExtraPaymentProcessingType category) throws TException {
927
            ExtraPaymentProcessingType category) throws TException {
928
        paymentRequiringExtraProcessingHandler.delete(paymentId, category);
928
        paymentRequiringExtraProcessingHandler.delete(paymentId, category);
929
    }
929
    }
930
 
930
 
931
	@Override
931
	@Override
932
	public boolean validatePaymentAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, TException {
932
	public PaymentStatus getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, TException {
933
	        logger.info("Attempting to get status of payment of amount " + amount + " corresponding to our transaction " + merchantTxnId);
933
	        logger.info("Attempting to get status of payment of amount " + amount + " corresponding to our transaction " + merchantTxnId);
934
	        List<in.shop2020.payment.domain.Payment> payments;
934
	        List<in.shop2020.payment.domain.Payment> payments;
935
	        if(isDigital){
935
	        if(isDigital){
936
	        	payments = paymentHandler.getPaymentForRechargeTxn(merchantTxnId);
936
	        	payments = paymentHandler.getPaymentForRechargeTxn(merchantTxnId);
937
	        }else{
937
	        }else{
Line 954... Line 954...
954
	        else if (HDFC_EMI_GATEWAY_IDS.contains(gatewayId)){
954
	        else if (HDFC_EMI_GATEWAY_IDS.contains(gatewayId)){
955
	            //return validateHdfcEmiPayment(payment, amount);
955
	            //return validateHdfcEmiPayment(payment, amount);
956
	        }
956
	        }
957
	        
957
	        
958
	        logger.error("We have an payment from unknown gateway: " + gatewayId);
958
	        logger.error("We have an payment from unknown gateway: " + gatewayId);
959
	        return false;
959
	        return PaymentStatus.INIT;
960
	    }
960
	    }
961
 
961
 
962
	
962
	
963
}
963
}