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 33b5aff commit bdc6a2d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bdc6a2d

Please sign in to comment.