Subversion Repositories SmartDukaan

Rev

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

Rev 27721 Rev 27722
Line 352... Line 352...
352
		orderService.cancelOrder(invoiceNumbers);
352
		orderService.cancelOrder(invoiceNumbers);
353
	}
353
	}
354
	
354
	
355
	@Autowired HdfcPaymentRepository hdfcPaymentRepository;
355
	@Autowired HdfcPaymentRepository hdfcPaymentRepository;
356
	public void addPayment() throws Exception {
356
	public void addPayment() throws Exception {
357
		List<Integer> paymentIds = Arrays.asList(3767, 3768, 3769, 3770, 3771, 3772, 3773, 3774, 3775, 3776);
357
		List<Integer> paymentIds = Arrays.asList(3777);
358
		for (int hdfcPaymentId : paymentIds) {
358
		for (int hdfcPaymentId : paymentIds) {
359
			HdfcPayment hdfcPayment = hdfcPaymentRepository.selectById(hdfcPaymentId);
359
			HdfcPayment hdfcPayment = hdfcPaymentRepository.selectById(hdfcPaymentId);
360
			String virtualAccount = hdfcPayment.getVirtualAccount();
360
			String virtualAccount = hdfcPayment.getVirtualAccount();
361
			String retailerIdString = virtualAccount.substring(6);
361
			String retailerIdString = virtualAccount.substring(6);
362
			int retailerId = Integer.parseInt(retailerIdString);
362
			int retailerId = Integer.parseInt(retailerIdString);