|
@@ -396,9 +396,6 @@
|
|
|
|
|
|
|
|
<!-- 즉시구매 form -->
|
|
<!-- 즉시구매 form -->
|
|
|
<form id="cartInfoForm" method="post" action="/order/noMember"></form>
|
|
<form id="cartInfoForm" method="post" action="/order/noMember"></form>
|
|
|
-<!-- KCP PG TEST -->
|
|
|
|
|
-<form name="order_info" method="post" action="pp_cli_hub.jsp" >
|
|
|
|
|
-</form>
|
|
|
|
|
|
|
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
let sumRealPayAmt = [[${order.sumRealPayAmt + order.totDelvFee}]];
|
|
let sumRealPayAmt = [[${order.sumRealPayAmt + order.totDelvFee}]];
|
|
@@ -996,4 +993,57 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<!-- payment.js -->
|
|
|
|
|
+<script type="text/javascript" th:src="${@environment.getProperty('pg.kcp.js.url')}" src=""></script>
|
|
|
|
|
+<script type="text/javascript" src="/ux/pc/js/payment.js"></script>
|
|
|
|
|
+<form id="order_info" name="order_info" method="post" action="/order/pay/result/response" ></form>
|
|
|
|
|
+<input type="button" id="buyBtn" value="KCP TEST" style="width:100px;height:200px;" />
|
|
|
|
|
+<script type="text/javascript">
|
|
|
|
|
+ $(document).on("click", "#buyBtn", function() {
|
|
|
|
|
+ let orderData = {
|
|
|
|
|
+ pgGb : "PAYCO"
|
|
|
|
|
+ , payMeans : "G014_30"
|
|
|
|
|
+ , ordNo : "5"
|
|
|
|
|
+ , goodsNm : "상품 테스트"
|
|
|
|
|
+ , payAmt : "1233"
|
|
|
|
|
+ , ordNm : "이태영"
|
|
|
|
|
+ , ordEmail : "xodud1202@naver.com"
|
|
|
|
|
+ , ordTelno : "02-0000-0000"
|
|
|
|
|
+ , ordPhnno : "010-7111-0000"
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ let jsonData = JSON.stringify(orderData);
|
|
|
|
|
+
|
|
|
|
|
+ $.ajax( {
|
|
|
|
|
+ type : "POST",
|
|
|
|
|
+ url : '/order/create/preOrder',
|
|
|
|
|
+ data : jsonData,
|
|
|
|
|
+ dataType : 'html',
|
|
|
|
|
+ beforeSend : function(xhr, settings) {
|
|
|
|
|
+ xhr.setRequestHeader("AJAX" , "true");
|
|
|
|
|
+ xhr.setRequestHeader('Accept' , 'application/json');
|
|
|
|
|
+ xhr.setRequestHeader('Content-Type' , 'application/json');
|
|
|
|
|
+ gagajf.showProgressbar(true);
|
|
|
|
|
+ },
|
|
|
|
|
+ error : function(e) {
|
|
|
|
|
+ alert(3);
|
|
|
|
|
+ },
|
|
|
|
|
+ success : function(result) {
|
|
|
|
|
+ // 결재정보로드
|
|
|
|
|
+ $("#order_info").html(result);
|
|
|
|
|
+ //kcp_AJAX();
|
|
|
|
|
+ jsf__pay(document.order_info);
|
|
|
|
|
+ //fnKakaoPaymentReady();
|
|
|
|
|
+ //fnNaverPaymentReady();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
</html>
|
|
</html>
|