나이스페이 결제수단 추가

This commit is contained in:
thisgun
2024-04-03 10:42:04 +09:00
parent baa114c471
commit 84669cb47f
53 changed files with 2403 additions and 65 deletions

View File

@ -306,6 +306,13 @@ if ($od_temp_point)
$i_price = $i_price + $i_send_cost + $i_send_cost2 - $i_temp_point - $i_send_coupon;
$order_price = $tot_od_price + $send_cost + $send_cost2 - $tot_sc_cp_price - $od_temp_point;
// PG사의 가상계좌 또는 계좌이체의 자동 현금영수증 초기배열값
$pg_receipt_infos = array(
'od_cash' => 0,
'od_cash_no' => '',
'od_cash_info' => '',
);
$od_status = '주문';
$od_tno = '';
@ -332,6 +339,9 @@ else if ($od_settle_case == "계좌이체")
case 'inicis':
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
break;
case 'nicepay':
include G5_SHOP_PATH.'/nicepay/nicepay_result.php';
break;
default:
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
$bank_name = iconv("cp949", "utf-8", $bank_name);
@ -360,6 +370,9 @@ else if ($od_settle_case == "가상계좌")
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
$od_app_no = $app_no;
break;
case 'nicepay':
include G5_SHOP_PATH.'/nicepay/nicepay_result.php';
break;
default:
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
$bankname = iconv("cp949", "utf-8", $bankname);
@ -384,6 +397,9 @@ else if ($od_settle_case == "휴대폰")
case 'inicis':
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
break;
case 'nicepay':
include G5_SHOP_PATH.'/nicepay/nicepay_result.php';
break;
default:
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
break;
@ -408,6 +424,9 @@ else if ($od_settle_case == "신용카드")
case 'inicis':
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
break;
case 'nicepay':
include G5_SHOP_PATH.'/nicepay/nicepay_result.php';
break;
default:
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
$card_name = iconv("cp949", "utf-8", $card_name);
@ -434,6 +453,9 @@ else if ($od_settle_case == "간편결제" || (($od_settle_case == "lpay" || $od
case 'inicis':
include G5_SHOP_PATH.'/inicis/inistdpay_result.php';
break;
case 'nicepay':
include G5_SHOP_PATH.'/nicepay/nicepay_result.php';
break;
default:
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
$card_name = iconv("cp949", "utf-8", $card_name);
@ -490,6 +512,10 @@ if($tno) {
case 'inicis':
include G5_SHOP_PATH.'/inicis/inipay_cancel.php';
break;
case 'nicepay':
$cancelAmt = (int)$pg_price;
include G5_SHOP_PATH.'/nicepay/cancel_process.php';
break;
case 'KAKAOPAY':
$_REQUEST['TID'] = $tno;
$_REQUEST['Amt'] = $amount;
@ -604,6 +630,9 @@ $sql = " insert {$g5['g5_shop_order_table']}
od_ip = '$REMOTE_ADDR',
od_settle_case = '$od_settle_case',
od_other_pay_type = '$od_other_pay_type',
od_cash = '{$pg_receipt_infos['od_cash']}',
od_cash_no = '{$pg_receipt_infos['od_cash_no']}',
od_cash_info = '{$pg_receipt_infos['od_cash_info']}',
od_test = '{$default['de_card_test']}'
";
$result = sql_query($sql, false);