Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 committed Nov 19, 2024
1 parent 8367113 commit 30b966c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 30b966c

Please sign in to comment.