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 4968f85..3aeeb40 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 @@ -53,11 +53,10 @@ 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); - Long reservationId = paymentService.approvePayment(orderId, pgToken); + @RequestParam(value = "pg_token", required = false) String pgToken, @RequestParam(value = "1", required = false) Long orderId) { + return "redirect:/" + approvalDeepLink + "?reservationId=" + paymentService.approvePayment(orderId, pgToken); +// Long reservationId = paymentService.approvePayment(orderId, pgToken); // return "redirect:" + "wouldyouin://booking/kakao/check/payment_approve" + "?reservationId=" + reservationId; - return "redirect:payview"; } @GetMapping("payview")