From 6b7ae69e694529d9172c5781c39d7df8944a60dd Mon Sep 17 00:00:00 2001 From: daolove0323 Date: Tue, 19 Nov 2024 18:01:03 +0900 Subject: [PATCH] . --- .../cokaen/wouldyouin/payment/application/PaymentService.java | 2 +- .../wouldyouin/reservation/api/ReservationController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 49ae4d1..2590cd7 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.getNextRedirectMobileUrl() + "?orderId=" + payment.getPartnerOrderId(); + return kakaoPayResponse.getNextRedirectPcUrl() + "?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 6d925dc..ee3df9a 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 @@ -79,7 +79,7 @@ public ResponseEntity> createReserv return ApiResponse.created( new KakaoPayReservationResponse(null, KakaoPayResponse.builder(). - nextRedirectAppUrl(paymentService.readyPaymentTest()).build())); + nextRedirectPcUrl(paymentService.readyPaymentTest()).build())); } // 앱스토어 배포 시 결제 api 사용에 제한이 있어 만든 테스트 결제