diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/dto/KakaoPayResponse.java b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/dto/KakaoPayResponse.java index 4274645..fb9b0ae 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/payment/dto/KakaoPayResponse.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/payment/dto/KakaoPayResponse.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.annotation.JsonNaming; import java.time.LocalDateTime; import lombok.AllArgsConstructor; +import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; @@ -14,6 +15,7 @@ @AllArgsConstructor @EqualsAndHashCode @ToString +@Builder @JsonNaming(value = SnakeCaseStrategy.class) public class KakaoPayResponse { 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 41528fd..f91236a 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 @@ -75,7 +75,10 @@ public ResponseEntity> createReserv @Valid @RequestBody ReservationRequest reservationRequest, @Authorize({MemberType.normal, MemberType.curator}) MemberIdentifier identifier ) { - return ApiResponse.created(paymentService.readyPayment(identifier, reservationRequest)); +// return ApiResponse.created(paymentService.readyPayment(identifier, reservationRequest)); + return ApiResponse.created( + new KakaoPayReservationResponse(null, + KakaoPayResponse.builder().nextRedirectAppUrl(paymentService.readyPaymentTest()).build())); } // 앱스토어 배포 시 결제 api 사용에 제한이 있어 만든 테스트 결제