Subversion Repositories SmartDukaan

Rev

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

Rev 6482 Rev 6489
Line 168... Line 168...
168
		        		
168
		        		
169
		return resultMap;
169
		return resultMap;
170
	}
170
	}
171
	
171
	
172
	public static Map<String, String> refundPayment(Payment payment, double amount){
172
	public static Map<String, String> refundPayment(Payment payment, double amount){
173
		String ramount = "" + payment.getAmount();
173
		String ramount = "" + amount;
174
		String gatewayPaymentId = payment.getGatewayPaymentId();
174
		String gatewayPaymentId = payment.getGatewayPaymentId();
175
		log.info("Refunding amount: Rs " + amount + " for payment Id: " + gatewayPaymentId);
175
		log.info("Refunding amount: Rs " + amount + " for payment Id: " + gatewayPaymentId);
176
		
176
		
177
		//Prepare resultMap to elicit failure behaviour in case anything goes wrong.
177
		//Prepare resultMap to elicit failure behaviour in case anything goes wrong.
178
		Map<String, String> resultMap = new HashMap<String, String>();
178
		Map<String, String> resultMap = new HashMap<String, String>();