diff --git a/mobile/shop/personalpayform.php b/mobile/shop/personalpayform.sub.php similarity index 88% rename from mobile/shop/personalpayform.php rename to mobile/shop/personalpayform.sub.php index b8017e079..54b369655 100644 --- a/mobile/shop/personalpayform.php +++ b/mobile/shop/personalpayform.sub.php @@ -1,44 +1,11 @@ 0 "; -$pp = sql_fetch($sql); - -if(!$pp['pp_id']) - alert('개인결제 정보가 존재하지 않습니다.'); - -if($pp['pp_tno']) - alert('이미 결제하신 개인결제 내역입니다.'); - -$g5['title'] = $pp['pp_name'].'님 개인결제'; -include_once(G5_MSHOP_PATH.'/_head.php'); - -$action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php'; +if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 require_once(G5_MSHOP_PATH.'/settle_'.$default['de_pg_service'].'.inc.php'); // 결제등록 요청시 사용할 입금마감일 $ipgm_date = date("Ymd", (G5_SERVER_TIME + 86400 * 5)); $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정(갤럭시탭,아이패드 - 1.85, 스마트폰 - 1.0) - -// 개인결제 체크를 위한 hash -$hash_data = md5($pp['pp_id'].$pp['pp_price'].$pp['pp_time']); -set_session('ss_personalpay_id', $pp['pp_id']); -set_session('ss_personalpay_hash', $hash_data); - -// 에스크로 상품정보 -if($default['de_escrow_use']) { - $good_info .= "seq=1".chr(31); - $good_info .= "ordr_numb={$pp_id}_".sprintf("%04d", 1).chr(31); - $good_info .= "good_name=".addslashes($pp['pp_name'].'님 개인결제').chr(31); - $good_info .= "good_cntx=1".chr(31); - $good_info .= "good_amtx=".$pp['pp_price'].chr(31); -} - -// 주문폼과 공통 사용을 위해 추가 -$od_id = $pp_id; -$tot_price = $pp['pp_price']; -$goods = $pp['pp_name'].'님 개인결제'; ?>
@@ -49,7 +16,7 @@ $goods = $pp['pp_name'].'님 개인결제';
-
+

개인결제정보

@@ -350,8 +317,4 @@ function payment_check(f) return true; } - - - \ No newline at end of file + \ No newline at end of file diff --git a/shop/inicis/orderform.5.php b/shop/inicis/orderform.5.php deleted file mode 100644 index d054abec9..000000000 --- a/shop/inicis/orderform.5.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/shop/kcp/orderform.5.php b/shop/kcp/orderform.5.php deleted file mode 100644 index d054abec9..000000000 --- a/shop/kcp/orderform.5.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/shop/lg/orderform.1.php b/shop/lg/orderform.1.php index d23eeb102..bf20e9ff3 100644 --- a/shop/lg/orderform.1.php +++ b/shop/lg/orderform.1.php @@ -56,6 +56,8 @@ function payment_return() { document.getElementById("forderform").action = ""; document.getElementById("forderform").submit(); } else { + document.getElementById("forderform").target = "_self"; + document.getElementById("forderform").action = ""; alert("LGD_RESPCODE (결과코드) : " + fDoc.document.getElementById('LGD_RESPCODE').value + "\n" + "LGD_RESPMSG (결과메시지): " + fDoc.document.getElementById('LGD_RESPMSG').value); closeIframe(); } diff --git a/shop/lg/orderform.5.php b/shop/lg/orderform.5.php deleted file mode 100644 index d054abec9..000000000 --- a/shop/lg/orderform.5.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/shop/orderform.php b/shop/orderform.php index 84f82b7c3..a92a1d672 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -69,8 +69,4 @@ if(G5_IS_MOBILE) include_once(G5_MSHOP_PATH.'/_tail.php'); else include_once(G5_SHOP_PATH.'/_tail.php'); - -// 결제대행사별 코드 include (스크립트 실행) -if(!$is_mobile_order) - require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.5.php'); ?> diff --git a/shop/personalpayform.php b/shop/personalpayform.php index 95d6783fd..802207a49 100644 --- a/shop/personalpayform.php +++ b/shop/personalpayform.php @@ -1,10 +1,8 @@ 0 "; $pp = sql_fetch($sql); @@ -18,23 +16,26 @@ if($pp['pp_tno']) $g5['title'] = $pp['pp_name'].'님 개인결제'; // 전자결제를 사용할 때만 실행 -if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use']) { - switch($default['de_pg_service']) { - case 'lg': - $g5['body_script'] = ' onload="isActiveXOK();"'; - break; - case 'inicis': - $g5['body_script'] = ' onload="javascript:enable_click()"'; - break; - default: - $g5['body_script'] = ' onload="CheckPayplusInstall();"'; - break; +if(!$is_mobile_pay) { + if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use'] || $default['de_card_use']) { + switch($default['de_pg_service']) { + case 'lg': + $g5['body_script'] = ''; + break; + case 'inicis': + $g5['body_script'] = ' onload="javascript:enable_click()"'; + break; + default: + $g5['body_script'] = ' onload="CheckPayplusInstall();"'; + break; + } } } -include_once('./_head.php'); - -$action_url = G5_HTTPS_SHOP_URL.'/personalpayformupdate.php'; +if(G5_IS_MOBILE) + include_once(G5_MSHOP_PATH.'/_head.php'); +else + include_once(G5_SHOP_PATH.'/_head.php'); // 개인결제 체크를 위한 hash $hash_data = md5($pp['pp_id'].$pp['pp_price'].$pp['pp_time']); @@ -55,286 +56,17 @@ $od_id = $pp_id; $tot_price = $pp['pp_price']; $goods = $pp['pp_name'].'님 개인결제'; -require_once('./settle_'.$default['de_pg_service'].'.inc.php'); - -// 결제대행사별 코드 include (스크립트 등) -require_once('./'.$default['de_pg_service'].'/orderform.1.php'); -?> - - - - - - -
-

개인결제정보

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
상세내용
결제금액
-
- - '; - echo '결제방법 선택'; - } - - // 가상계좌 사용 - if ($default['de_vbank_use']) { - $multi_settle++; - echo ' '.PHP_EOL; - $checked = ''; - } - - // 계좌이체 사용 - if ($default['de_iche_use']) { - $multi_settle++; - echo ' '.PHP_EOL; - $checked = ''; - } - - // 휴대폰 사용 - if ($default['de_hp_use']) { - $multi_settle++; - echo ' '.PHP_EOL; - $checked = ''; - } - - // 신용카드 사용 - if ($default['de_card_use']) { - $multi_settle++; - echo ' '.PHP_EOL; - $checked = ''; - } - - if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) { - echo ''; - - } - - if ($multi_settle == 0) - echo '

결제할 방법이 없습니다.
운영자에게 알려주시면 감사하겠습니다.

'; - ?> -
- - - - - - - - - \ No newline at end of file diff --git a/shop/personalpayform.sub.php b/shop/personalpayform.sub.php new file mode 100644 index 000000000..680c60e1e --- /dev/null +++ b/shop/personalpayform.sub.php @@ -0,0 +1,275 @@ + + +
+ + + + +
+

개인결제정보

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
상세내용
결제금액
+
+ + '; + echo '결제방법 선택'; + } + + // 가상계좌 사용 + if ($default['de_vbank_use']) { + $multi_settle++; + echo ' '.PHP_EOL; + $checked = ''; + } + + // 계좌이체 사용 + if ($default['de_iche_use']) { + $multi_settle++; + echo ' '.PHP_EOL; + $checked = ''; + } + + // 휴대폰 사용 + if ($default['de_hp_use']) { + $multi_settle++; + echo ' '.PHP_EOL; + $checked = ''; + } + + // 신용카드 사용 + if ($default['de_card_use']) { + $multi_settle++; + echo ' '.PHP_EOL; + $checked = ''; + } + + if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) { + echo ''; + + } + + if ($multi_settle == 0) + echo '

결제할 방법이 없습니다.
운영자에게 알려주시면 감사하겠습니다.

'; + ?> +
+ + + +
+ + + + \ No newline at end of file