이니시스 Lpay 간편결제 추가
This commit is contained in:
@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
require_once(G5_MSHOP_PATH.'/settle_'.$default['de_pg_service'].'.inc.php');
|
||||
require_once(G5_SHOP_PATH.'/settle_kakaopay.inc.php');
|
||||
|
||||
if( $default['de_samsung_pay_use'] ){ //삼성페이 사용시
|
||||
if( is_inicis_simple_pay() ){ //이니시스 삼성페이 또는 Lpay 사용시
|
||||
require_once(G5_MSHOP_PATH.'/samsungpay/incSamsungpayCommon.php');
|
||||
}
|
||||
|
||||
@ -245,7 +245,7 @@ ob_end_clean();
|
||||
// 결제대행사별 코드 include (결제등록 필드)
|
||||
require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
|
||||
if( $default['de_samsung_pay_use'] ){ //삼성페이 사용시
|
||||
if( is_inicis_simple_pay() ){ //이니시스 삼성페이 또는 lpay 사용시
|
||||
require_once(G5_MSHOP_PATH.'/samsungpay/orderform.1.php');
|
||||
}
|
||||
?>
|
||||
@ -543,7 +543,7 @@ if($is_kakaopay_use) {
|
||||
$escrow_title = "에스크로 ";
|
||||
}
|
||||
|
||||
if ($is_kakaopay_use || $default['de_bank_use'] || $default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use'] || $default['de_easy_pay_use'] || $default['de_samsung_pay_use']) {
|
||||
if ($is_kakaopay_use || $default['de_bank_use'] || $default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use'] || $default['de_easy_pay_use'] || is_inicis_simple_pay()) {
|
||||
echo '<div id="sod_frm_paysel"><ul>';
|
||||
}
|
||||
|
||||
@ -614,6 +614,12 @@ if($is_kakaopay_use) {
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
//이니시스 Lpay
|
||||
if($default['de_inicis_lpay_use']) {
|
||||
echo '<li><input type="radio" id="od_settle_inicislpay" data-case="lpay" name="od_settle_case" value="lpay" '.$checked.'> <label for="od_settle_inicislpay" class="inicis_lpay">L.pay</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
$temp_point = 0;
|
||||
@ -667,7 +673,7 @@ if($is_kakaopay_use) {
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if ($default['de_bank_use'] || $default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use'] || $default['de_easy_pay_use'] || $default['de_samsung_pay_use']) {
|
||||
if ($default['de_bank_use'] || $default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use'] || $default['de_easy_pay_use'] || is_inicis_simple_pay() ) {
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@ -680,7 +686,7 @@ if($is_kakaopay_use) {
|
||||
// 결제대행사별 코드 include (결제대행사 정보 필드 및 주분버튼)
|
||||
require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.2.php');
|
||||
|
||||
if( $default['de_samsung_pay_use'] ){ //삼성페이 사용시
|
||||
if( is_inicis_simple_pay() ){ //삼성페이 또는 L.pay 사용시
|
||||
require_once(G5_MSHOP_PATH.'/samsungpay/orderform.2.php');
|
||||
}
|
||||
|
||||
@ -706,7 +712,7 @@ if($is_kakaopay_use) {
|
||||
// 결제대행사별 코드 include (에스크로 안내)
|
||||
require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.3.php');
|
||||
|
||||
if( $default['de_samsung_pay_use'] ){ //삼성페이 사용시
|
||||
if( is_inicis_simple_pay() ){ //삼성페이 사용시
|
||||
require_once(G5_MSHOP_PATH.'/samsungpay/orderform.3.php');
|
||||
}
|
||||
}
|
||||
@ -715,7 +721,7 @@ if($is_kakaopay_use) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if( $default['de_samsung_pay_use'] ){ //삼성페이 사용시
|
||||
if( is_inicis_simple_pay() ){ //삼성페이 사용시
|
||||
require_once(G5_MSHOP_PATH.'/samsungpay/order.script.php');
|
||||
}
|
||||
?>
|
||||
@ -1209,7 +1215,7 @@ function pay_approval()
|
||||
|
||||
var form_order_method = '';
|
||||
|
||||
if( settle_method == "삼성페이" ){
|
||||
if( settle_method == "삼성페이" || settle_method == "lpay" ){
|
||||
form_order_method = 'samsungpay';
|
||||
}
|
||||
|
||||
@ -1294,6 +1300,12 @@ function pay_approval()
|
||||
//f.DEF_RESERVED.value = f.DEF_RESERVED.value.replace("&useescrow=Y", "");
|
||||
f.P_SKIP_TERMS.value = "Y"; //약관을 skip 해야 제대로 실행됨
|
||||
break;
|
||||
case "lpay":
|
||||
paymethod = "wcard";
|
||||
f.P_RESERVED.value = f.P_RESERVED.value.replace("&useescrow=Y", "")+"&d_lpay=Y";
|
||||
//f.DEF_RESERVED.value = f.DEF_RESERVED.value.replace("&useescrow=Y", "");
|
||||
f.P_SKIP_TERMS.value = "Y"; //약관을 skip 해야 제대로 실행됨
|
||||
break;
|
||||
}
|
||||
f.P_AMT.value = f.good_mny.value;
|
||||
f.P_UNAME.value = pf.od_name.value;
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
//삼성페이 요청으로 왔다면 현재 삼성페이는 이니시스 밖에 없으므로 $default['de_pg_service'] 값을 이니시스로 변경한다.
|
||||
if( $od_settle_case == '삼성페이' && !empty($_POST['P_HASH']) ){
|
||||
//삼성페이 또는 lpay 요청으로 왔다면 현재 삼성페이 또는 lpay는 이니시스 밖에 없으므로 $default['de_pg_service'] 값을 이니시스로 변경한다.
|
||||
if( is_inicis_order_pay($od_settle_case) && !empty($_POST['P_HASH']) ){
|
||||
$default['de_pg_service'] = 'inicis';
|
||||
}
|
||||
|
||||
@ -431,7 +431,7 @@ else if ($od_settle_case == "간편결제")
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else if ($od_settle_case == "삼성페이")
|
||||
else if ( is_inicis_order_pay($od_settle_case) ) //이니시스의 삼성페이 또는 L.pay
|
||||
{
|
||||
// 이니시스에서만 지원
|
||||
include G5_MSHOP_PATH.'/inicis/pay_result.php';
|
||||
|
||||
@ -230,7 +230,7 @@ if($od['od_pg'] == 'lg') {
|
||||
$disp_bank = true;
|
||||
$disp_receipt = false;
|
||||
$easy_pay_name = '';
|
||||
if($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == 'KAKAOPAY' || $od['od_settle_case'] == '삼성페이') {
|
||||
if($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == 'KAKAOPAY' || is_inicis_order_pay($od['od_settle_case']) ) {
|
||||
$app_no_subj = '승인번호';
|
||||
$app_no = $od['od_app_no'];
|
||||
$disp_bank = false;
|
||||
@ -283,7 +283,7 @@ if($od['od_pg'] == 'lg') {
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo ($easy_pay_name ? $easy_pay_name.'('.$od['od_settle_case'].')' : $od['od_settle_case']); ?></td>
|
||||
<td><?php echo ($easy_pay_name ? $easy_pay_name.'('.$od['od_settle_case'].')' : check_pay_name_replace($od['od_settle_case'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
@ -351,7 +351,7 @@ if($od['od_pg'] == 'lg') {
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '삼성페이')
|
||||
if($od['od_settle_case'] == '신용카드' || is_inicis_order_pay($od['od_settle_case']) )
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
//삼성페이 사용시에만 해당함
|
||||
if( ! $default['de_samsung_pay_use'] || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
//삼성페이 또는 Lpay 사용시에만 해당함
|
||||
if( ! is_inicis_simple_pay() || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
//삼성페이 사용시에만 해당함
|
||||
if( ! $default['de_samsung_pay_use'] || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
//삼성페이 또는 L.pay 사용시에만 해당함
|
||||
if( ! is_inicis_simple_pay() || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
//삼성페이 사용시에만 해당함
|
||||
if( ! $default['de_samsung_pay_use'] || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
//삼성페이 또는 L.pay 사용시에만 해당함
|
||||
if( ! is_inicis_simple_pay() || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
//삼성페이 사용시에만 해당함
|
||||
if( ! $default['de_samsung_pay_use'] || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
//삼성페이 또는 L.pay 사용시에만 해당함
|
||||
if( ! is_inicis_simple_pay() || ('inicis' == $default['de_pg_service']) ){ //PG가 이니시스인 경우 아래 내용 사용 안함
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user