모바일 xpay 연동 문의

. 에 pc.
->properties
<entry key="LGD_RETURNURL" value="camping.ulju.ulsan.kr/html/Xpay/returnurl.jsp" />
<entry key="LGD_M_RETURNURL" value="camping.ulju.ulsan.kr/html/Xpay/returnurl_mobile.jsp" />

->당 controller
String LGD_RETURNURL_STR = this.properties.getString("LGD_RETURNURL");

//PC
Device device = DeviceUtils.getCurrentDevice(request);
boolean isMobile = false;
if (device.isMobile()){
isMobile = true;
LGD_RETURNURL_STR = this.properties.getString("LGD_M_RETURNURL");
request.setAttribute("LGD_WINDOW_TYPE", "submit");
request.setAttribute("LGD_CUSTOM_SWITCHINGTYPE", "SUBMIT");
}
request.setAttribute("isMobile", Boolean.valueOf(isMobile));
String LGD_RETURNURL = "";
if (protocolChk) {
LGD_RETURNURL = "https://" + LGD_RETURNURL_STR;
} else {
LGD_RETURNURL = "http://" + LGD_RETURNURL_STR;
}
request.setAttribute("LGD_RETURNURL", LGD_RETURNURL);

->
function launchCrossPlatform(){
var width=document.body.clientWidth;
var isMobile = '${isMobile}';
console.log("info",isMobile);
if(isMobile){
lgdwin = open_paymentwindow(document.getElementById('LGD_PAYINFO'), '<%=CST_PLATFORM%>', LGD_window_type);
}else{
lgdwin = openXpay(document.getElementById('LGD_PAYINFO'), '<%=CST_PLATFORM%>', LGD_window_type);
}
}
.
.

payreq_crossplatform
/*
* LGD_RETURNURL . . .
*/
String LGD_RETURNURL = "http://상점URL/returnurl.jsp";// FOR MANUAL
?
Was this page helpful?