diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java index 1c4b014..49ae4d1 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/application/PaymentService.java @@ -108,7 +108,7 @@ public String readyPaymentTest() { ); payment.setTid(kakaoPayResponse.getTid()); paymentRepository.save(payment); - return kakaoPayResponse.getNextRedirectAppUrl() + "?orderId=" + payment.getPartnerOrderId(); + return kakaoPayResponse.getNextRedirectMobileUrl() + "?orderId=" + payment.getPartnerOrderId(); } @Transactional diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/ReservationController.java b/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/ReservationController.java index f91236a..6d925dc 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/ReservationController.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/reservation/api/ReservationController.java @@ -78,7 +78,8 @@ public ResponseEntity> createReserv // return ApiResponse.created(paymentService.readyPayment(identifier, reservationRequest)); return ApiResponse.created( new KakaoPayReservationResponse(null, - KakaoPayResponse.builder().nextRedirectAppUrl(paymentService.readyPaymentTest()).build())); + KakaoPayResponse.builder(). + nextRedirectAppUrl(paymentService.readyPaymentTest()).build())); } // 앱스토어 배포 시 결제 api 사용에 제한이 있어 만든 테스트 결제