pg 결제 tno 저장 필드명 변경
This commit is contained in:
@ -331,7 +331,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);
|
||||
@ -349,7 +349,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);
|
||||
@ -364,7 +364,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);
|
||||
@ -378,7 +378,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);
|
||||
@ -412,6 +412,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',
|
||||
@ -445,7 +449,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."',
|
||||
|
||||
@ -246,7 +246,7 @@ if(openwin != null) {
|
||||
</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=800')">영수증 출력</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=800')">영수증 출력</a></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -274,10 +274,10 @@ if(openwin != null) {
|
||||
<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[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
|
||||
@ -327,11 +327,11 @@ if(openwin != null) {
|
||||
<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>
|
||||
<?
|
||||
}
|
||||
@ -597,7 +597,7 @@ if(openwin != null) {
|
||||
<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 />
|
||||
|
||||
@ -146,7 +146,7 @@ if(!$default['de_card_test']) {
|
||||
set od_receipt_amount = '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm'
|
||||
where od_id = '$order_no'
|
||||
and od_escrow1 = '$tno' ";
|
||||
and od_tno = '$tno' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user