Commit 7de7dd99 authored by Mahesh Maney R's avatar Mahesh Maney R
Browse files

adding affiliation <ManeyMR>.

Showing with 4 additions and 1 deletion
+4 -1
...@@ -71,7 +71,7 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -71,7 +71,7 @@ public class PaymentServiceImpl implements PaymentService {
String strEndPoint = ""; String strEndPoint = "";
if (strings.contains("registration")) { if (strings.contains("registration")) {
strEndPoint = REGISTRATION_PAYMENT_GATEWAY_ENDPOINT; strEndPoint = REGISTRATION_PAYMENT_GATEWAY_ENDPOINT;
} else if (strings.contains("registration")) { } else if (strings.contains("affiliation")) {
strEndPoint = AFFILIATION_PAYMENT_GATEWAY_ENDPOINT; strEndPoint = AFFILIATION_PAYMENT_GATEWAY_ENDPOINT;
} }
String responseString = ""; String responseString = "";
...@@ -83,6 +83,9 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -83,6 +83,9 @@ public class PaymentServiceImpl implements PaymentService {
responseString = strEndPoint + "?resp=failure"; responseString = strEndPoint + "?resp=failure";
logger.info("Payment failed."); logger.info("Payment failed.");
} }
/**
* save to postgresDB
*/
logger.info("responseString details...{} ", responseString); logger.info("responseString details...{} ", responseString);
httpHeaders.setLocation(URI.create(responseString)); httpHeaders.setLocation(URI.create(responseString));
return new ResponseEntity<String>(null, httpHeaders, HttpStatus.FOUND); return new ResponseEntity<String>(null, httpHeaders, HttpStatus.FOUND);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment