Skip to content

Commit

Permalink
Update KakaoPaymentRedirectController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 committed Nov 21, 2024
1 parent 2cf14ed commit 36e7386
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public String redirectKakaopay(RedirectAttributes redirectAttribute) {

@GetMapping("/kakaopay/redirect/approval")
public String redirectKakaopayApproval(
@RequestParam(value = "pg_token", required = false) String pgToken, @RequestParam(value = "1", required = false) Long orderId) {
@RequestParam("pg_token") String pgToken, @RequestParam(value = "1", required = false) Long orderId) {
log.debug("실행되는지 확인 테스트");
return "redirect:" + approvalDeepLink + "?reservationId=" + "1";
// paymentService.approvePayment(orderId, pgToken);
Expand All @@ -69,14 +69,14 @@ public String payView() {
@GetMapping("/kakaopay/redirect/cancel")
public String redirectKakaopayCancel(@RequestParam("pg_token") String pgToken) {
String redirectDeeplink = "redirect:" + cancelDeepLink + "?pg_token=" + pgToken;
log.debug("#### redirectDeeplink = {}", redirectDeeplink);
log.debug("#### 캔슬 = {}", redirectDeeplink);
return redirectDeeplink;
}

@GetMapping("/kakaopay/redirect/fail")
public String redirectKakaopayFail(@RequestParam("pg_token") String pgToken) {
String redirectDeeplink = "redirect:" + failDeepLink + "?pg_token=" + pgToken;
log.debug("#### redirectDeeplink = {}", redirectDeeplink);
log.debug("#### 페일 = {}", redirectDeeplink);
return redirectDeeplink;
}
}

0 comments on commit 36e7386

Please sign in to comment.