Subversion Repositories SmartDukaan

Rev

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

Rev 3616 Rev 4246
Line 147... Line 147...
147
		if (result != null && result.trim().equals(PaymentReturnStatus.APPROVED.value())) {
147
		if (result != null && result.trim().equals(PaymentReturnStatus.APPROVED.value())) {
148
			log.info("Payment " + merchantPaymentId + " authorized successfully. Updating the database.");
148
			log.info("Payment " + merchantPaymentId + " authorized successfully. Updating the database.");
149
			String description = "Payment authorized";
149
			String description = "Payment authorized";
150
			updatePaymentDetails(merchantPaymentId, description, PaymentStatus.AUTHORIZED, request, paymentClient);
150
			updatePaymentDetails(merchantPaymentId, description, PaymentStatus.AUTHORIZED, request, paymentClient);
151
 
151
 
152
            CommonPaymentService.processSuccessfulTxn(txnId, userServiceClient, transactionServiceClient);
152
            CommonPaymentService.processSuccessfulTxn(txnId, userServiceClient, transactionServiceClient, false);
153
 
153
 
154
            this.redirectUrl = successUrl + "?paymentId=" + merchantPaymentId;
154
            this.redirectUrl = successUrl + "?paymentId=" + merchantPaymentId;
155
		} else {
155
		} else {
156
			updatePaymentDetails(merchantPaymentId, errorText, PaymentStatus.FAILED, request, paymentClient);
156
			updatePaymentDetails(merchantPaymentId, errorText, PaymentStatus.FAILED, request, paymentClient);
157
 
157