From ae129af21b13387bb4cc65b7bbd83c78ddb26c42 Mon Sep 17 00:00:00 2001 From: Mahesh Maney R <mahesh-maney@users.noreply.github.com> Date: Wed, 23 Aug 2023 17:47:32 +0530 Subject: [PATCH] adding url to properties and changing the condition of payment success <ManeyMR>. --- .../userManagement/services/impl/PaymentServiceImpl.java | 4 ++-- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java b/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java index 8ab6c47..f4e70d7 100644 --- a/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java +++ b/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java @@ -59,8 +59,8 @@ public class PaymentServiceImpl implements PaymentService { logger.info("payment details...{} ", requestData); org.springframework.http.HttpHeaders httpHeaders = new org.springframework.http.HttpHeaders(); String responseString = ""; - if( (requestData != null ) && (requestData.get("Response_Code")!= null) - && requestData.get("Response_Code").equals("E000")) { + if( (requestData != null ) && (requestData.get("Response Code")!= null) + && requestData.get("Response Code").equals("E000")) { responseString = PAYMENT_GATEWAY_ENDPOINT+ "?resp=success"; logger.info("Payment is successful."); } else { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 94ef32b..543c3ea 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -18,7 +18,7 @@ sunbirdRC.keycloak.adminToken.userName =admin sunbirdRC.keycloak.adminToken.clientID =admin-api sunbirdRC.keycloak.adminToken.clientSecret =QF5op6Hb3Y9mY1rU0IycdjmD7j3Bvzkh sunbirdRC.keycloak.adminToken.password =admin -paymentGatewayEndPoint =https://applicant.upsmfac.org +paymentGatewayEndPoint =https://applicant.upsmfac.org/payment-response spring.datasource.url=jdbc:postgresql://localhost:5432/frac_tool spring.datasource.username=postgres -- GitLab