Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
이니시스 신용카드 포인트 결제 기능 넣음
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Sep 21, 2017
1 parent e43425c commit 029958e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
15 changes: 15 additions & 0 deletions adm/shop_admin/configform.php
Expand Up @@ -108,6 +108,12 @@
ADD `de_samsung_pay_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_easy_pay_use` ", true);
}

// 이니시스
if(!isset($default['de_inicis_cartpoint_use'])) {
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
ADD `de_inicis_cartpoint_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_samsung_pay_use` ", true);
}

// 카카오페이 필드 추가
if(!isset($default['de_kakaopay_mid'])) {
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
Expand Down Expand Up @@ -748,6 +754,15 @@
<input type="checkbox" name="de_samsung_pay_use" value="1" id="de_samsung_pay_use"<?php echo $default['de_samsung_pay_use']?' checked':''; ?>> <label for="de_samsung_pay_use">사용</label>
</td>
</tr>
<tr class="pg_info_fld inicis_info_fld">
<th scope="row">
<label for="de_inicis_cartpoint_use">KG이니시스 신용카드 포인트 결제</label>
</th>
<td>
<?php echo help("신용카드 포인트 결제에 대해 이니시스와 계약을 맺은 상점에서만 적용하는 옵션입니다.<br>체크시 pc 결제에서는 신용카드 포인트 사용 여부에 대한 팝업창에 사용 버튼과 사용안함 버튼이 표기되어 결제하는 고객의 선택여부에 따라 신용카드 포인트 결제가 가능합니다.<br >모바일에서는 신용카드 포인트 사용이 가능합니다.", 50); ?>
<input type="checkbox" name="de_inicis_cartpoint_use" value="1" id="de_inicis_cartpoint_use"<?php echo $default['de_inicis_cartpoint_use']?' checked':''; ?>> <label for="de_inicis_cartpoint_use">사용</label>
</td>
</tr>
<tr class="kakao_info_fld">
<th scope="row">
<label for="de_kakaopay_mid">카카오페이 상점MID</label>
Expand Down
3 changes: 2 additions & 1 deletion adm/shop_admin/configformupdate.php
Expand Up @@ -144,7 +144,8 @@
de_card_test = '{$_POST['de_card_test']}',
de_card_use = '{$_POST['de_card_use']}',
de_easy_pay_use = '{$_POST['de_easy_pay_use']}',
de_samsung_pay_use = '{$_POST['de_samsung_pay_use']}',
de_samsung_pay_use = '{$_POST['de_samsung_pay_use']}',
de_inicis_cartpoint_use = '{$_POST['de_inicis_cartpoint_use']}',
de_card_noint_use = '{$_POST['de_card_noint_use']}',
de_card_point = '{$_POST['de_card_point']}',
de_settle_min_point = '{$_POST['de_settle_min_point']}',
Expand Down
1 change: 1 addition & 0 deletions install/gnuboard5shop.sql
Expand Up @@ -354,6 +354,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_default` (
`de_iche_use` tinyint(4) NOT NULL DEFAULT '0',
`de_easy_pay_use` tinyint(4) NOT NULL DEFAULT '0',
`de_samsung_pay_use` tinyint(4) NOT NULL DEFAULT '0',
`de_inicis_cartpoint_use` tinyint(4) NOT NULL DEFAULT '0',
`de_item_use_use` tinyint(4) NOT NULL DEFAULT '0',
`de_item_use_write` tinyint(4) NOT NULL DEFAULT '0',
`de_code_dup_use` tinyint(4) NOT NULL DEFAULT '0',
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/inicis/orderform.1.php
Expand Up @@ -14,7 +14,7 @@
<input type="hidden" name="P_NOTI_URL" value="<?php echo $noti_url; ?>">
<input type="hidden" name="P_RETURN_URL" value="">
<input type="hidden" name="P_HPP_METHOD" value="2">
<input type="hidden" name="P_RESERVED" value="bank_receipt=N&twotrs_isp=Y&block_isp=Y<?php echo $useescrow; ?>">
<input type="hidden" name="P_RESERVED" value="bank_receipt=N&twotrs_isp=Y&block_isp=Y<?php echo $useescrow.$inicis_cardpoint; ?>">
<input type="hidden" name="DEF_RESERVED" value="bank_receipt=N&twotrs_isp=Y&block_isp=Y<?php echo $useescrow; ?>">
<input type="hidden" name="P_NOTI" value="<?php echo $od_id; ?>">
<input type="hidden" name="P_QUOTABASE" value="01:02:03:04:05:06:07:08:09:10:11:12"> <!-- 할부기간 설정 01은 일시불 -->
Expand Down
3 changes: 3 additions & 0 deletions mobile/shop/settle_inicis.inc.php
Expand Up @@ -91,6 +91,9 @@
'VBANK' => '가상계좌'
);

//신용카드 포인트 결제에 관한 옵션 ( 신청해야 함 )
$inicis_cardpoint = $default['de_inicis_cartpoint_use'] ? '&cp_yn=Y' : '';

$noti_url = G5_MSHOP_URL.'/inicis/settle_common.php';
$next_url = G5_MSHOP_URL.'/inicis/pay_approval.php';
$return_url = G5_MSHOP_URL.'/inicis/pay_return.php?oid=';
Expand Down
4 changes: 3 additions & 1 deletion shop/settle_inicis.inc.php
Expand Up @@ -57,7 +57,9 @@
$cardNoInterestQuota = ''; // 카드 무이자 여부 설정(가맹점에서 직접 설정)
$cardQuotaBase = '2:3:4:5:6:7:8:9:10:11:12'; // 가맹점에서 사용할 할부 개월수 설정

$acceptmethod = 'HPP(2):no_receipt:vbank('.date('Ymd', strtotime("+3 days", G5_SERVER_TIME)).'):below1000'.$useescrow;
$inicis_cardpoint = $default['de_inicis_cartpoint_use'] ? ':cardpoint' : ''; //신용카드 포인트 결제에 관한 옵션 ( 신청해야 함 )

$acceptmethod = 'HPP(2):no_receipt:vbank('.date('Ymd', strtotime("+3 days", G5_SERVER_TIME)).'):below1000'.$useescrow.$inicis_cardpoint;

/* 기타 */
$siteDomain = G5_SHOP_URL.'/inicis'; //가맹점 도메인 입력
Expand Down

0 comments on commit 029958e

Please sign in to comment.