lg u+ 결제모듈 추가

This commit is contained in:
chicpro
2014-05-26 13:47:55 +09:00
parent 11dec6a741
commit 927af6623a
68 changed files with 16519 additions and 162 deletions

View File

@ -12,6 +12,15 @@ $settle_case = $pp['pp_settle_case'];
$g5['title'] = '개인결제상세내역';
include_once(G5_MSHOP_PATH.'/_head.php');
// LG 현금영수증 JS
if($od['od_pg'] == 'lg') {
if($default['de_card_test']) {
echo '<script language="JavaScript" src="http://pgweb.uplus.co.kr:7085/WEB_SERVER/js/receipt_link.js"></script>'.PHP_EOL;
} else {
echo '<script language="JavaScript" src="http://pgweb.uplus.co.kr/WEB_SERVER/js/receipt_link.js"></script>'.PHP_EOL;
}
}
?>
<div id="sod_fin">
@ -125,7 +134,16 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<?php
if($pp['pp_settle_case'] == '휴대폰')
{
$hp_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'mcash_bill&tno='.$pp['pp_tno'].'&order_no='.$pp['pp_id'].'&trade_mony='.$pp['pp_receipt_price'].'\', \'winreceipt\', \'width=500,height=690,scrollbars=yes,resizable=yes\');';
if($pp['pp_pg'] == 'lg') {
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
$LGD_TID = $pp['pp_tno'];
$LGD_MERTKEY = $config['cf_lg_mert_key'];
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
$hp_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
} else {
$hp_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'mcash_bill&tno='.$pp['pp_tno'].'&order_no='.$pp['pp_id'].'&trade_mony='.$pp['pp_receipt_price'].'\', \'winreceipt\', \'width=500,height=690,scrollbars=yes,resizable=yes\');';
}
?>
<a href="javascript:;" onclick="<?php echo $hp_receipt_script; ?>">영수증 출력</a>
<?php
@ -133,7 +151,16 @@ include_once(G5_MSHOP_PATH.'/_head.php');
if($pp['pp_settle_case'] == '신용카드')
{
$card_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'card_bill&tno='.$pp['pp_tno'].'&order_no='.$pp['pp_id'].'&trade_mony='.$pp['pp_receipt_price'].'\', \'winreceipt\', \'width=470,height=815,scrollbars=yes,resizable=yes\');';
if($pp['pp_pg'] == 'lg') {
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
$LGD_TID = $pp['pp_tno'];
$LGD_MERTKEY = $config['cf_lg_mert_key'];
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
$card_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
} else {
$card_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'card_bill&tno='.$pp['pp_tno'].'&order_no='.$pp['pp_id'].'&trade_mony='.$pp['pp_receipt_price'].'\', \'winreceipt\', \'width=470,height=815,scrollbars=yes,resizable=yes\');';
}
?>
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
<?php
@ -174,8 +201,8 @@ include_once(G5_MSHOP_PATH.'/_head.php');
</ul>
</section>
<?php if ($misu_price > 0 && $pp['pp_settle_case'] == '가상계좌' && $default['de_card_test'] && $is_admin) {
preg_match("/(\s[^\s]+\s?)/", $pp['pp_bank_account'], $matchs);
<?php if ($pp['pp_settle_case'] == '가상계좌' && $default['de_card_test'] && $is_admin && $pp['pp_pg'] == 'kcp') {
preg_match("/\s{1}([^\s]+)\s?/", $pp['pp_bank_account'], $matchs);
$deposit_no = trim($matchs[1]);
?>
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>