From 30b966c87e6386b432b18c98c81712d9e8d55fb0 Mon Sep 17 00:00:00 2001 From: daolove0323 Date: Wed, 20 Nov 2024 05:37:04 +0900 Subject: [PATCH] . --- .../cokaen/wouldyouin/payment/application/PaymentService.java | 1 + .../reservation/api/KakaoPaymentRedirectController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java index ae77450..fc2c897 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java @@ -67,6 +67,7 @@ public String readyPayment(MemberIdentifier identifier, ReservationRequest reser throw new FailedToPayException("카카오페이 API 요청을 실패하였습니다."); } ); + log.debug("kakaoPayResponse: {}", kakaoPayResponse); payment.setTid(kakaoPayResponse.getTid()); paymentRepository.save(payment); paymentRepository.flush(); diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/KakaoPaymentRedirectController.java b/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/KakaoPaymentRedirectController.java index 397be6a..b511028 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/KakaoPaymentRedirectController.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/KakaoPaymentRedirectController.java @@ -49,7 +49,7 @@ public String redirectKakaopay(RedirectAttributes redirectAttribute) { @GetMapping("/kakaopay/redirect/approval") public String redirectKakaopayApproval( @RequestParam("pg_token") String pgToken, @RequestParam Long orderId) { - return "redirect:" + approvalDeepLink + "?reservationId=" + paymentService.approvePayment(orderId, pgToken) + "&pg_token=" + pgToken; + return "redirect:" + approvalDeepLink + "?reservationId=" + paymentService.approvePayment(orderId, pgToken); } @GetMapping("payview")