From fb4fef008b6b2a7532d4635487ca6afe7897b4c0 Mon Sep 17 00:00:00 2001 From: kang Date: Tue, 15 Oct 2024 17:41:21 +0900 Subject: [PATCH] chore: add log --- src/main/java/co/orange/ddanzi/service/PaymentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/co/orange/ddanzi/service/PaymentService.java b/src/main/java/co/orange/ddanzi/service/PaymentService.java index 8bc4346..267ff08 100644 --- a/src/main/java/co/orange/ddanzi/service/PaymentService.java +++ b/src/main/java/co/orange/ddanzi/service/PaymentService.java @@ -174,6 +174,7 @@ public String getPortOneAccessToken(){ HttpEntity entity = new HttpEntity<>(requestBody, headers); RestTemplate restTemplate = new RestTemplate(); + log.info("포트원 Access key 요청 생성"); ResponseEntity response = restTemplate.exchange(url, HttpMethod.POST, entity, PortOneTokenResponseDto.class); log.info("포트원 Access key Get 성공"); return response.getBody().getResponse().getAccess_token(); @@ -182,7 +183,6 @@ public String getPortOneAccessToken(){ public void refundPayment(User user, Order order, String reason){ if(!user.equals(order.getBuyer())) throw new RuntimeException("결제자와 요청자가 다르므로 환불이 어렵습니다."); - try{ String baseUrl = "https://api.iamport.kr/payments/cancel"; String url = UriComponentsBuilder.fromUriString(baseUrl)