pg 결제 tno 저장 필드명 변경
This commit is contained in:
@ -337,7 +337,7 @@ else if ($od_settle_case == "계좌이체")
|
||||
$od_temp_amount = $i_amount;
|
||||
$od_temp_point = $i_temp_point;
|
||||
|
||||
$od_escrow1 = $tno;
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = $amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
|
||||
@ -355,7 +355,7 @@ else if ($od_settle_case == "가상계좌")
|
||||
$od_temp_point = $i_temp_point;
|
||||
$od_receipt_point = 0;
|
||||
|
||||
$od_escrow1 = $tno;
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = 0;
|
||||
$bankname = iconv("cp949", "utf8", $bankname);
|
||||
$depositor = iconv("cp949", "utf8", $depositor);
|
||||
@ -370,7 +370,7 @@ else if ($od_settle_case == "휴대폰")
|
||||
$od_temp_amount = $i_amount;
|
||||
$od_temp_point = $i_temp_point;
|
||||
|
||||
$od_escrow1 = $tno;
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = $amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
|
||||
@ -384,7 +384,7 @@ else if ($od_settle_case == "신용카드")
|
||||
$od_temp_amount = $i_amount;
|
||||
$od_temp_point = $i_temp_point;
|
||||
|
||||
$od_escrow1 = $tno;
|
||||
$od_tno = $tno;
|
||||
$od_receipt_amount = $amount;
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $app_time);
|
||||
@ -418,6 +418,10 @@ $od_id = get_session('ss_order_uniqid');
|
||||
// 주문상품의 uq_id 변경을 위한 uq_id를 얻는다.
|
||||
$uq_id = get_uniqid();
|
||||
|
||||
$od_escrow = 0;
|
||||
if($escw_yn == 'Y')
|
||||
$od_escrow = 1;
|
||||
|
||||
// 주문서에 입력
|
||||
$sql = " insert {$g4['shop_order_table']}
|
||||
set od_id = '$od_id',
|
||||
@ -451,7 +455,8 @@ $sql = " insert {$g4['shop_order_table']}
|
||||
od_receipt_point = '$od_receipt_point',
|
||||
od_bank_account = '$od_bank_account',
|
||||
od_receipt_time = '$od_receipt_time',
|
||||
od_escrow1 = '$od_escrow1',
|
||||
od_tno = '$od_tno',
|
||||
od_escrow = '$od_escrow',
|
||||
od_shop_memo = '',
|
||||
od_hope_date = '$od_hope_date',
|
||||
od_time = '".G4_TIME_YMDHIS."',
|
||||
|
||||
@ -233,7 +233,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td><a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $od['od_escrow1']; ?>', 'winreceipt', 'width=620,height=670')">영수증 출력</a></td>
|
||||
<td><a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $od['od_tno']; ?>', 'winreceipt', 'width=620,height=670')">영수증 출력</a></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -261,10 +261,10 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
<th scope="row">휴대폰번호</th>
|
||||
<td><?php echo $cd['cd_opt02']; ?></td>
|
||||
</tr>
|
||||
<?php //echo '<tr><th scope="row">영수증</th><td><a href="javascript:;" onclick="window.open(\'http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no='.$od[od_escrow1].'\', \'winreceipt\', \'width=620,height=670\')">영수증 출력</a></td></tr>'; ?>
|
||||
<?php //echo '<tr><th scope="row">영수증</th><td><a href="javascript:;" onclick="window.open(\'http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no='.$od[od_tno].'\', \'winreceipt\', \'width=620,height=670\')">영수증 출력</a></td></tr>'; ?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td><a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $od['od_escrow1']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a></td>
|
||||
<td><a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $od['od_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -314,11 +314,11 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
<td><?php echo $od['od_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($od['od_escrow1']) {
|
||||
if ($od['od_tno']) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">KCP 거래번호</th>
|
||||
<td><?php echo $od['od_escrow1']; ?></td>
|
||||
<td><?php echo $od['od_tno']; ?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
@ -584,7 +584,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
<legend>모의입금처리</legend>
|
||||
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>
|
||||
<form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">
|
||||
<input type="text" name="e_trade_no" value="<?php echo $od['od_escrow1']; ?>" size="80"><br />
|
||||
<input type="text" name="e_trade_no" value="<?php echo $od['od_tno']; ?>" size="80"><br />
|
||||
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>" size="80"><br />
|
||||
<input type="text" name="req_name" value="<?php echo $od['od_name']; ?>" size="80"><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G4_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
|
||||
Reference in New Issue
Block a user