Skip to content

Commit

Permalink
Merge pull request #122 from Orange-Co/feature/fcm
Browse files Browse the repository at this point in the history
chore: add log
  • Loading branch information
Kang1221 authored Oct 15, 2024
2 parents f299543 + fb4fef0 commit 3f0696e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/co/orange/ddanzi/service/PaymentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public String getPortOneAccessToken(){
HttpEntity<PortOneTokenRequestDto> entity = new HttpEntity<>(requestBody, headers);

RestTemplate restTemplate = new RestTemplate();
log.info("포트원 Access key 요청 생성");
ResponseEntity<PortOneTokenResponseDto> response = restTemplate.exchange(url, HttpMethod.POST, entity, PortOneTokenResponseDto.class);
log.info("포트원 Access key Get 성공");
return response.getBody().getResponse().getAccess_token();
Expand All @@ -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)
Expand Down

0 comments on commit 3f0696e

Please sign in to comment.