From 7de7dd9935f53fcbc5f810456908f6ff33c02f4b Mon Sep 17 00:00:00 2001
From: Mahesh Maney R <mahesh-maney@users.noreply.github.com>
Date: Mon, 28 Aug 2023 14:52:39 +0530
Subject: [PATCH] adding affiliation <ManeyMR>.

---
 .../userManagement/services/impl/PaymentServiceImpl.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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 9b2b59f..a45d3f0 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
@@ -71,7 +71,7 @@ public class PaymentServiceImpl implements PaymentService {
             String strEndPoint = "";
             if (strings.contains("registration")) {
                 strEndPoint = REGISTRATION_PAYMENT_GATEWAY_ENDPOINT;
-            } else if (strings.contains("registration")) {
+            } else if (strings.contains("affiliation")) {
                 strEndPoint = AFFILIATION_PAYMENT_GATEWAY_ENDPOINT;
             }
             String responseString = "";
@@ -83,6 +83,9 @@ public class PaymentServiceImpl implements PaymentService {
                 responseString = strEndPoint + "?resp=failure";
                 logger.info("Payment failed.");
             }
+            /**
+             * save to postgresDB
+             */
             logger.info("responseString details...{} ", responseString);
             httpHeaders.setLocation(URI.create(responseString));
             return new ResponseEntity<String>(null, httpHeaders, HttpStatus.FOUND);
-- 
GitLab