Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 committed Nov 21, 2024
1 parent 1e63db6 commit c970d59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public String readyPayment(MemberIdentifier identifier, ReservationRequest reser
paymentRepository.save(payment);
paymentRepository.flush();
return kakaoPayResponse.getNextRedirectAppUrl() + "?orderId=" + payment.getPartnerOrderId();

}

@Transactional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public String payTest() {
public String redirectKakaopayApproval(
@RequestParam("pg_token") String pgToken, @RequestParam Long orderId) {
log.debug("실행되는지 확인 테스트 pg: {}, id: {}", pgToken, orderId);
paymentService.approvePaymentTest(orderId, pgToken);
return "redirect:/payview";
// paymentService.approvePaymentTest(orderId, pgToken);
// return "redirect:/payview";
// return "redirect:" + "wouldyouin://booking/kakao/check/payment_approve" + "?reservationId=" + "1";
// paymentService.approvePayment(orderId, pgToken);
// Long reservationId = paymentService.approvePayment(orderId, pgToken);
// return "redirect:" + "wouldyouin://booking/kakao/check/payment_approve" + "?reservationId=" + reservationId;
Long reservationId = paymentService.approvePayment(orderId, pgToken);
return "redirect:" + "wouldyouin://booking/kakao/check/payment_approve" + "?reservationId=" + reservationId;
}

@GetMapping("payview")
Expand Down

0 comments on commit c970d59

Please sign in to comment.