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 Jan 16, 2018
1 parent a9cc526 commit c79b803
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion mobile/shop/samsungpay/order.script.php
Expand Up @@ -37,7 +37,12 @@ function samsungpay_form_submit(){
samsungpayform.P_RESERVED.value = samsungpayform.P_RESERVED.value.replace("&useescrow=Y", "")+"&d_samsungpay=Y";
}

samsungpayform.P_AMT.value = samsungpayform.good_mny.value;
if( ! jQuery("form[name='sm_form']").length ){
alert("해당 폼이 존재 하지 않는 결제오류입니다.");
return false;
}

samsungpayform.P_AMT.value = samsungpayform.good_mny.value = document.sm_form.good_mny.value;
samsungpayform.P_UNAME.value = pf.od_name.value;
samsungpayform.P_MOBILE.value = pf.od_hp.value;
samsungpayform.P_EMAIL.value = pf.od_email.value;
Expand Down
2 changes: 2 additions & 0 deletions mobile/shop/settle_inicis.inc.php
@@ -1,6 +1,8 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

define('G5_MOBILE_INICIS_SETTLE', true);

// curl 체크
if (!function_exists('curl_init')) {
alert('cURL 모듈이 설치되어 있지 않습니다.\\n상점관리자에게 문의해 주십시오.');
Expand Down
4 changes: 4 additions & 0 deletions shop/inicis/inipay_cancel.php
Expand Up @@ -20,6 +20,10 @@

$TID = $tno;
$inipay->SetField("type", "cancel"); // 고정
if( $default['de_inicis_admin_key'] ){
$inipay->SetField("mid", $mid);
$inipay->SetField("admin", $default['de_inicis_admin_key']);
}
$inipay->SetField("tid", $TID); // 고정
$inipay->SetField("cancelmsg", "DB FAIL"); // 취소사유
$inipay->startAction();
Expand Down
4 changes: 3 additions & 1 deletion shop/settle_inicis.inc.php
Expand Up @@ -18,7 +18,9 @@
$stdpay_js_url = 'https://stdpay.inicis.com/stdjs/INIStdPay.js';
}
else {
$default['de_inicis_mid'] = "SIR".$default['de_inicis_mid'];
if( !defined('G5_MOBILE_INICIS_SETTLE') ){
$default['de_inicis_mid'] = "SIR".$default['de_inicis_mid'];
}

if ($default['de_escrow_use'] == 1) {
// 에스크로결제
Expand Down

0 comments on commit c79b803

Please sign in to comment.