This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chicpro
committed
Apr 27, 2016
1 parent
b7e1612
commit 9095c5e
Showing
9 changed files
with
69 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,125 +1,59 @@ | ||
<?php | ||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 | ||
|
||
/* ============================================================================== */ | ||
/* = Javascript source Include = */ | ||
/* = -------------------------------------------------------------------------- = */ | ||
/* = ※ 필수 = */ | ||
/* = -------------------------------------------------------------------------- = */ | ||
|
||
// kcp 전자결제를 사용할 때만 실행 | ||
if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use'] || $default['de_easy_pay_use']) { | ||
?> | ||
<script src="<?php echo $g_conf_js_url; ?>"></script> | ||
<?php | ||
/* = -------------------------------------------------------------------------- = */ | ||
/* = Javascript source Include END = */ | ||
/* ============================================================================== */ | ||
?> | ||
<script> | ||
StartSmartUpdate(); | ||
|
||
function CheckPayplusInstall() | ||
<script type="text/javascript"> | ||
/****************************************************************/ | ||
/* m_Completepayment 설명 */ | ||
/****************************************************************/ | ||
/* 인증완료시 재귀 함수 */ | ||
/* 해당 함수명은 절대 변경하면 안됩니다. */ | ||
/* 해당 함수의 위치는 payplus.js 보다먼저 선언되어여 합니다. */ | ||
/* Web 방식의 경우 리턴 값이 form 으로 넘어옴 */ | ||
/* EXE 방식의 경우 리턴 값이 json 으로 넘어옴 */ | ||
/****************************************************************/ | ||
function m_Completepayment( FormOrJson, closeEvent ) | ||
{ | ||
setTimeout("init_pay_button();",300); | ||
} | ||
var frm = document.forderform; | ||
|
||
/* Payplus Plug-in 실행 */ | ||
function jsf__pay( form ) | ||
{ | ||
var RetVal = false; | ||
/********************************************************************/ | ||
/* FormOrJson은 가맹점 임의 활용 금지 */ | ||
/* frm 값에 FormOrJson 값이 설정 됨 frm 값으로 활용 하셔야 됩니다. */ | ||
/* FormOrJson 값을 활용 하시려면 기술지원팀으로 문의바랍니다. */ | ||
/********************************************************************/ | ||
GetField( frm, FormOrJson ); | ||
|
||
/* Payplus Plugin 실행 */ | ||
if ( MakePayMessage( form ) == true ) | ||
if( frm.res_cd.value == "0000" ) | ||
{ | ||
//openwin = window.open( "./kcp/proc_win.html", "proc_win", "width=449, height=209, top=300, left=300" ); | ||
document.getElementById("display_pay_button").style.display = "none" ; | ||
document.getElementById("display_pay_process").style.display = "" ; | ||
RetVal = true ; | ||
} | ||
|
||
frm.submit(); | ||
} | ||
else | ||
{ | ||
/* res_cd와 res_msg변수에 해당 오류코드와 오류메시지가 설정됩니다. | ||
ex) 고객이 Payplus Plugin에서 취소 버튼 클릭시 res_cd=3001, res_msg=사용자 취소 | ||
값이 설정됩니다. | ||
*/ | ||
res_cd = document.forderform.res_cd.value ; | ||
res_msg = document.forderform.res_msg.value ; | ||
alert( "[" + frm.res_cd.value + "] " + frm.res_msg.value ); | ||
|
||
closeEvent(); | ||
} | ||
|
||
return RetVal ; | ||
} | ||
</script> | ||
|
||
// Payplus Plug-in 설치 안내 | ||
|
||
function init_pay_button() | ||
<script src="<?php echo $g_conf_js_url; ?>"></script> | ||
<script> | ||
/* Payplus Plug-in 실행 */ | ||
function jsf__pay( form ) | ||
{ | ||
if ((navigator.userAgent.indexOf('MSIE') > 0) || (navigator.userAgent.indexOf('Trident/7.0') > 0)) | ||
try | ||
{ | ||
try | ||
{ | ||
if( document.Payplus.object == null ) | ||
{ | ||
document.getElementById("display_setup_message_top").style.display = "" ; | ||
document.getElementById("display_setup_message").style.display = "" ; | ||
document.getElementById("display_pay_button").style.display = "none" ; | ||
//document.getElementById("display_setup_message").scrollIntoView(); | ||
} | ||
else{ | ||
document.getElementById("display_setup_message_top").style.display = "none" ; | ||
document.getElementById("display_setup_message").style.display = "none" ; | ||
document.getElementById("display_pay_button").style.display = "" ; | ||
} | ||
} | ||
catch (e) | ||
{ | ||
document.getElementById("display_setup_message_top").style.display = "" ; | ||
document.getElementById("display_setup_message").style.display = "" ; | ||
document.getElementById("display_pay_button").style.display = "none" ; | ||
//document.getElementById("display_setup_message").scrollIntoView(); | ||
} | ||
KCP_Pay_Execute( form ); | ||
} | ||
else | ||
catch (e) | ||
{ | ||
try | ||
{ | ||
if( Payplus == null ) | ||
{ | ||
document.getElementById("display_setup_message_top").style.display = "" ; | ||
document.getElementById("display_setup_message").style.display = "" ; | ||
document.getElementById("display_pay_button").style.display = "none" ; | ||
//document.getElementById("display_setup_message").scrollIntoView(); | ||
} | ||
else{ | ||
document.getElementById("display_setup_message_top").style.display = "none" ; | ||
document.getElementById("display_setup_message").style.display = "none" ; | ||
document.getElementById("display_pay_button").style.display = "" ; | ||
} | ||
} | ||
catch (e) | ||
{ | ||
document.getElementById("display_setup_message_top").style.display = "" ; | ||
document.getElementById("display_setup_message").style.display = "" ; | ||
document.getElementById("display_pay_button").style.display = "none" ; | ||
//document.getElementById("display_setup_message").scrollIntoView(); | ||
} | ||
/* IE 에서 결제 정상종료시 throw로 스크립트 종료 */ | ||
} | ||
} | ||
|
||
function get_intall_file() | ||
{ | ||
document.location.href = GetInstallFile(); | ||
return false; | ||
} | ||
</script> | ||
|
||
<!-- Payplus Plug-in 설치 안내 --> | ||
<p id="display_setup_message_top" class="display_setup_message" style="display:block"> | ||
<strong>결제안내</strong> | ||
<span class="red">결제를 하시려면 상단의 노란색 표시줄을 클릭</span>하시거나, <a href="https://pay.kcp.co.kr/plugin_new/file/KCPPluginSetup.exe" onclick="return get_intall_file();"><span class="bold">[수동설치]</span></a>를 눌러 Payplus Plug-in을 설치하시기 바랍니다.<br> | ||
[수동설치]를 눌러 설치하신 경우 <span class="red bold">새로고침(F5)키</span>를 눌러 진행하시기 바랍니다. | ||
</p> | ||
|
||
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,12 @@ | ||
<?php | ||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 | ||
|
||
// kcp 전자결제를 사용할 때만 실행 | ||
if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use'] || $default['de_easy_pay_use']) { | ||
?> | ||
|
||
<!-- Payplus Plug-in 설치 안내 시작 { --> | ||
<p id="display_setup_message" class="display_setup_message" style="display:block"> | ||
<span class="red">결제를 계속 하시려면 상단의 노란색 표시줄을 클릭</span>하시거나 <a href="https://pay.kcp.co.kr/plugin_new/file/KCPPluginSetup.exe" onclick="return get_intall_file();"><b><u>[수동설치]</u></b></a>를 눌러 다운로드 된 Payplus Plug-in을 설치하시기 바랍니다.<br> | ||
[수동설치]를 눌러 설치하신 경우 <span class="red bold">새로고침(F5)키</span>를 눌러 진행하시기 바랍니다.<br> | ||
새로고침(F5) 한후에도 계속 설치파일이 다운로드 되거나 결제가 되지 않으면 브라우저를 새로 열어서 주문해 주시기 바랍니다.<br> | ||
브라우저가 익스플로러가 아닌 경우 Payplus Plug-in 설치에 문제가 있을수 있음을 알려 드립니다. | ||
</p> | ||
<!-- } Payplus Plug-in 설치 안내 끝 --> | ||
<?php } ?> | ||
|
||
<div id="display_pay_button" class="btn_confirm" style="display:none"> | ||
<input type="submit" value="주문하기" onclick="return forderform_check(this.form);" class="btn_submit"> | ||
<div id="display_pay_button" class="btn_confirm"> | ||
<input type="button" value="주문하기" onclick="forderform_check(this.form);" class="btn_submit"> | ||
<a href="javascript:history.go(-1);" class="btn01">취소</a> | ||
</div> | ||
<div id="display_pay_process" style="display:none"> | ||
<img src="<?php echo G5_URL; ?>/shop/img/loading.gif" alt=""> | ||
<span>주문완료 중입니다. 잠시만 기다려 주십시오.</span> | ||
</div> | ||
|
||
<?php | ||
// 무통장 입금만 사용할 때는 주문하기 버튼 보이게 | ||
if(!($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use'] || $default['de_easy_pay_use'])) { | ||
?> | ||
<script> | ||
document.getElementById("display_pay_button").style.display = "" ; | ||
</script> | ||
<?php } ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters