From 712172a0ea9900a18f423b3f6456157b3ecdb01d Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 17 Apr 2024 15:21:55 +0900 Subject: [PATCH] =?UTF-8?q?NHN=5FKCP=20=EA=B2=B0=EC=A0=9C=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EA=B2=80=EC=A6=9D=EA=B8=B0=EB=8A=A5=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/kcp/pp_ax_hub.php | 19 ++++++++++++++++++- shop/kcp/pp_ax_hub.php | 17 ++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/mobile/shop/kcp/pp_ax_hub.php b/mobile/shop/kcp/pp_ax_hub.php index bc091650b..074a8c62f 100644 --- a/mobile/shop/kcp/pp_ax_hub.php +++ b/mobile/shop/kcp/pp_ax_hub.php @@ -9,7 +9,6 @@ /* = Copyright (c) 2010.05 KCP Inc. All Rights Reserved. = */ /* ============================================================================== */ - /* ============================================================================== */ /* = 환경 설정 파일 Include = */ /* = -------------------------------------------------------------------------- = */ @@ -110,6 +109,24 @@ /* = -------------------------------------------------------------------------- = */ if ( $req_tx == "pay" ) { + /* 1004원은 실제로 업체에서 결제하셔야 될 원 금액을 넣어주셔야 합니다. 결제금액 유효성 검증 */ + $c_PayPlus->mf_set_ordr_data( "ordr_mony", $good_mny ); + + $kcp_pay_type = ''; // 결제수단 검증 파라미터 pay_type (신용카드 : PACA, 계좌이체 : PABK, 가상계좌 : PAVC, 휴대폰 : PAMC) + + if ($use_pay_method == "100000000000") { // 신용카드 + $kcp_pay_type = 'PACA'; + } else if ($use_pay_method == "010000000000") { // 계좌이체 + $kcp_pay_type = 'PABK'; + } else if ($use_pay_method == "001000000000") { // 가상계좌 + $kcp_pay_type = 'PAVC'; + } else if ($use_pay_method == "000010000000") { // 휴대폰 + $kcp_pay_type = 'PAMC'; + } + + $c_PayPlus->mf_set_ordr_data( "pay_type", $kcp_pay_type ); + $c_PayPlus->mf_set_ordr_data( "ordr_no", $ordr_idxx ); + $post_enc_data = isset($_POST["enc_data"]) ? $_POST["enc_data"] : ''; $post_enc_info = isset($_POST["enc_info"]) ? $_POST["enc_info"] : ''; diff --git a/shop/kcp/pp_ax_hub.php b/shop/kcp/pp_ax_hub.php index 77f7c41fc..12d446fa7 100644 --- a/shop/kcp/pp_ax_hub.php +++ b/shop/kcp/pp_ax_hub.php @@ -146,7 +146,22 @@ if ( $req_tx == "pay" ) { /* 1004원은 실제로 업체에서 결제하셔야 될 원 금액을 넣어주셔야 합니다. 결제금액 유효성 검증 */ $c_PayPlus->mf_set_ordr_data( "ordr_mony", $good_mny ); - + + $kcp_pay_type = ''; // 결제수단 검증 파라미터 pay_type (신용카드 : PACA, 계좌이체 : PABK, 가상계좌 : PAVC, 휴대폰 : PAMC) + + if ($use_pay_method == "100000000000") { // 신용카드 + $kcp_pay_type = 'PACA'; + } else if ($use_pay_method == "010000000000") { // 계좌이체 + $kcp_pay_type = 'PABK'; + } else if ($use_pay_method == "001000000000") { // 가상계좌 + $kcp_pay_type = 'PAVC'; + } else if ($use_pay_method == "000010000000") { // 휴대폰 + $kcp_pay_type = 'PAMC'; + } + + $c_PayPlus->mf_set_ordr_data( "pay_type", $kcp_pay_type ); + $c_PayPlus->mf_set_ordr_data( "ordr_no", $ordr_idxx ); + $post_enc_data = isset($_POST['enc_data']) ? $_POST['enc_data'] : ''; $post_enc_info = isset($_POST['enc_info']) ? $_POST['enc_info'] : '';