|
|
@@ -4,6 +4,7 @@ import java.util.Collection;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
@@ -11,6 +12,7 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
import com.style24.core.biz.service.TscFreegiftService;
|
|
|
+import com.style24.core.biz.service.TscKakaoPayService;
|
|
|
import com.style24.core.biz.service.TscOrderService;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.front.biz.service.TsfCartService;
|
|
|
@@ -43,6 +45,9 @@ public class TsfOrderController extends TsfBaseController {
|
|
|
@Autowired
|
|
|
private TsfCartService cartService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TscKakaoPayService kakaoPayService;
|
|
|
+
|
|
|
/**
|
|
|
* 회원, 비회원 주문페이지
|
|
|
*
|
|
|
@@ -334,7 +339,19 @@ public class TsfOrderController extends TsfBaseController {
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 카카오페이 결제준비 처리
|
|
|
+ *
|
|
|
+ * @param Order
|
|
|
+ * @return GagaMap
|
|
|
+ * @author card007
|
|
|
+ * @since 2021. 03. 03
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/kakao/payment/ready")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaMap kakaoPaymentReady(Order order) {
|
|
|
+ return kakaoPayService.kakaoPaymentReady(order);
|
|
|
+ }
|
|
|
|
|
|
}
|