Subversion Repositories SmartDukaan

Rev

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

Rev 6390 Rev 10269
Line 56... Line 56...
56
            return PAYMENT_NOT_CREATED;
56
            return PAYMENT_NOT_CREATED;
57
        }
57
        }
58
        
58
        
59
        try {
59
        try {
60
            paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
60
            paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
61
            this.redirectURL = paymentServiceClient.getClient().doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrder.getId(), phone);
61
            this.redirectURL = paymentServiceClient.getClient().doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrder.getId(), phone, false);
62
            return merchantPaymentId;
62
            return merchantPaymentId;
63
        }catch (Exception e) {
63
        }catch (Exception e) {
64
            log.error("Error while initializing payment.", e);
64
            log.error("Error while initializing payment.", e);
65
            return PAYMENT_NOT_CREATED;
65
            return PAYMENT_NOT_CREATED;
66
        }
66
        }
Line 77... Line 77...
77
			return PAYMENT_NOT_CREATED;
77
			return PAYMENT_NOT_CREATED;
78
		}
78
		}
79
		
79
		
80
		try {
80
		try {
81
			paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
81
			paymentServiceClient.getClient().updatePaymentDetails(merchantPaymentId, null, null, null, null, null, null, null, null, PaymentStatus.INIT, null, attributes);
82
			this.redirectURL = paymentServiceClient.getClient().initializeHdfcPayment(merchantPaymentId);
82
			this.redirectURL = paymentServiceClient.getClient().initializeHdfcPayment(merchantPaymentId, false);
83
			return merchantPaymentId;
83
			return merchantPaymentId;
84
		}catch (Exception e) {
84
		}catch (Exception e) {
85
			log.error("Error while initializing payment.", e);
85
			log.error("Error while initializing payment.", e);
86
			return PAYMENT_NOT_CREATED;
86
			return PAYMENT_NOT_CREATED;
87
		}
87
		}