Unverified Commit de631e37 authored by Shishir Suman's avatar Shishir Suman Committed by GitHub
Browse files

Merge pull request #7 from UPHRH-platform/feature_update_fee

changes for updating fee
Showing with 2 additions and 0 deletions
+2 -0
......@@ -110,10 +110,12 @@ public class PaymentServiceImpl implements PaymentService {
}
private void updateStudentFeeStatus(String referenceNo) {
logger.info("updating student fee for ref - {}", referenceNo);
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setContentType(MediaType.APPLICATION_JSON);
httpHeaders.setBearerAuth(EXAMS_AUTH_TOKEN);
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);
logger.info("Update student fee status - {}", responseEntity);
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