Prechádzať zdrojové kódy

20210927 - kcp 아이폰 app 실시간계좌이체 결제 변수 추가

taeyoung 4 rokov pred
rodič
commit
f803b3375a

+ 1 - 0
src/main/resources/config/application-dev.yml

@@ -69,6 +69,7 @@ pg:
             url: testpaygw.kcp.co.kr
             port: 8090
         js.url: https://testpay.kcp.co.kr/plugin/payplus_web.jsp
+        app.url: https://testpay.kcp.co.kr/shop/smart_phone_linux_jsp/sample/acnt/order_acnt_app.jsp?AppUrl=Kftc-bankpay
         server: false
         site:
             cd: U3476

+ 1 - 0
src/main/resources/config/application-locd.yml

@@ -66,6 +66,7 @@ pg:
             url: testpaygw.kcp.co.kr
             port: 8090
         js.url: https://testpay.kcp.co.kr/plugin/payplus_web.jsp
+        app.url: https://testpay.kcp.co.kr/shop/smart_phone_linux_jsp/sample/acnt/order_acnt_app.jsp?AppUrl=Kftc-bankpay
         server: false
         site:
             cd: U3476

+ 1 - 0
src/main/resources/config/application-run.yml

@@ -92,6 +92,7 @@ pg:
             port: 8090
         user.type: PGNW
         js.url: https://pay.kcp.co.kr/plugin/payplus_web.jsp
+        app.url: https://pay.kcp.co.kr/shop/smart_phone_linux_jsp/sample/acnt/order_acnt_app.jsp?AppUrl=Kftc-bankpay
         server: true
         site:
             cd: U3476

+ 1 - 0
src/main/resources/config/application-style.yml

@@ -78,6 +78,7 @@ pg:
             port: 8090
         user.type: PGNW
         js.url: https://pay.kcp.co.kr/plugin/payplus_web.jsp
+        app.url: https://pay.kcp.co.kr/shop/smart_phone_linux_jsp/sample/acnt/order_acnt_app.jsp?AppUrl=Kftc-bankpay
         server: true
         site:
             cd: U3476

+ 15 - 1
src/main/webapp/WEB-INF/views/mob/order/OrderFormMob.html

@@ -521,6 +521,9 @@ var cpnApplyTemp		= false;
 //AJAX 로드를 위한 변수 설정
 var jsonObj 			= {};
 
+// 아이폰 실시간계좌이체를 위한 변수 설정
+var isIos				= false;
+
 // 컨텐츠 호출
 $(document).ready( function() {
 	// 999. 개발화면정보설정
@@ -583,6 +586,11 @@ $(document).ready( function() {
 	if (giftPackYn == "N") {
 		$("#orderForm .container").removeClass("od_gift");
 	}
+
+	// IOS인지 확인
+	if(navigator.userAgent.match(/iPhone|iPad|iPod/i)) {
+		isIos = true;
+	}
 });
 
 window.onpageshow = function(event){
@@ -1513,7 +1521,13 @@ var paymentInfoSet = function() {
 									// 2021.06.02 태팔요청
 									var protocol = location.protocol;
 									$("#order_info input[name=Ret_URL]").val(protocol + _frontUrl + "/order/pay/result/response");
-									kcp_AJAX();
+
+									// IOS에 실시간계좌이체가 아니면 APP_URL 제거
+									if(!(isIos && payMeans == "G014_10")) {
+										$("#order_info #appUrl").remove();
+									}
+
+									// kcp_AJAX();
 								}
 							}// 2021.07.15 상품권 100% 결제 
 							else if (pgGb == "ISTYLE") {

+ 1 - 0
src/main/webapp/WEB-INF/views/mob/pg/kcpOrderMob.html

@@ -30,6 +30,7 @@
 	<input type="hidden" name="PayUrl"			id="PayUrl"/>	<!-- 결제 정보 등록시 응답 타입 ( 필드가 없거나 값이 '' 일경우 TEXT, 값이 XML 또는 JSON 지원 -->
 	<!--<input type="hidden" name="Ret_URL"			th:value="${'http:' + @environment.getProperty('domain.front') + payment.retUrl}">-->			<!-- 리턴 URL (kcp와 통신후 결제를 요청할 수 있는 암호화 데이터를 전송 받을 가맹점의 주문페이지 URL) -->
 	<input type="hidden" name="Ret_URL"			/>
+	<input type="hidden" name="AppUrl"			th:value="${payment.appUrl}" id="appUrl"/>						<!-- 실시간 계좌이체 IOS APP 일 경우 송부되어야하는 변수 -->
 
 	<input type="hidden" name="tablet_size"		value="1.0">						<!-- 화면 크기 조정 -->
 	<input type="hidden" name="response_type"	value="TEXT"/>						<!-- 결제 정보 등록시 응답 타입 ( 필드가 없거나 값이 '' 일경우 TEXT, 값이 XML 또는 JSON 지원 -->