Commit eac33ce2 authored by shishir suman's avatar shishir suman
Browse files

changes for updating fee

Showing with 2 additions and 0 deletions
+2 -0
...@@ -110,10 +110,12 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -110,10 +110,12 @@ public class PaymentServiceImpl implements PaymentService {
} }
private void updateStudentFeeStatus(String referenceNo) { private void updateStudentFeeStatus(String referenceNo) {
logger.info("updating student fee for ref - {}", referenceNo);
HttpHeaders httpHeaders = new HttpHeaders(); HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setContentType(MediaType.APPLICATION_JSON); httpHeaders.setContentType(MediaType.APPLICATION_JSON);
httpHeaders.setBearerAuth(EXAMS_AUTH_TOKEN); httpHeaders.setBearerAuth(EXAMS_AUTH_TOKEN);
HttpEntity<String> entity = new HttpEntity<String>(referenceNo, httpHeaders); HttpEntity<String> entity = new HttpEntity<String>(referenceNo, httpHeaders);
logger.info("exam url - {}", FEE_STATUS_UPDATE_ENDPOINT);
ResponseEntity<ResponseDto> responseEntity = restTemplate.postForObject(FEE_STATUS_UPDATE_ENDPOINT, entity, ResponseEntity.class); ResponseEntity<ResponseDto> responseEntity = restTemplate.postForObject(FEE_STATUS_UPDATE_ENDPOINT, entity, ResponseEntity.class);
logger.info("Update student fee status - {}", responseEntity); logger.info("Update student fee status - {}", responseEntity);
if(responseEntity != null && responseEntity.getStatusCode() == HttpStatus.OK) { if(responseEntity != null && responseEntity.getStatusCode() == HttpStatus.OK) {
......
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