From 368ade5d54862ac26f65f3b1f632e641ac177701 Mon Sep 17 00:00:00 2001 From: daolove0323 Date: Tue, 19 Nov 2024 04:49:33 +0900 Subject: [PATCH] . --- .../reservation/api/KakaoPaymentRedirectController.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 fafdb1ee..165d9ca7 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 @@ -47,11 +47,18 @@ public String createReservation( @GetMapping("/kakaopay/redirect/approval") public String redirectKakaopayApproval(@RequestParam("pg_token") String pgToken, @RequestParam Long OrderId) { + log.debug("페이여기까지도?"); paymentService.approvePayment(OrderId, pgToken); - return "redirect:" + "https://wouldyouin.com/pay.html"; + log.debug("그러면 여기는?"); + return "redirect:" + "https://wouldyouin.store/payview"; // return approvalDeepLink; } + @GetMapping("payview") + public String payView() { + return "pay"; + } + @GetMapping("/kakaopay/redirect/cancel") public String redirectKakaopayCancel(@RequestParam("pg_token") String pgToken) { String redirectDeeplink = "redirect:" + cancelDeepLink + "?pg_token=" + pgToken;