From c6f456aeae5c0b2121afb1c0c40869e7078f2d3b Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 20 Jun 2013 14:06:23 +0900 Subject: [PATCH] =?UTF-8?q?#241=20=EC=97=90=EC=8A=A4=ED=81=AC=EB=A1=9C=20?= =?UTF-8?q?=EC=A3=BC=EB=AC=B8=20=EB=B0=B0=EC=86=A1=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=EC=97=B0=EB=8F=99=20=EC=9E=91=EC=97=85=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/orderescrow.inc.php | 85 +++++++++++++++++++++++++++ adm/shop_admin/orderform.php | 2 + adm/shop_admin/orderreceiptupdate.php | 19 ++++++ 3 files changed, 106 insertions(+) create mode 100644 adm/shop_admin/orderescrow.inc.php diff --git a/adm/shop_admin/orderescrow.inc.php b/adm/shop_admin/orderescrow.inc.php new file mode 100644 index 000000000..8dc352837 --- /dev/null +++ b/adm/shop_admin/orderescrow.inc.php @@ -0,0 +1,85 @@ +mf_clear(); + +$tran_cd = "00200000"; + +// 에스크로 상태변경 +$tno_count = count($arr_tno); +for($i=0; $i<$tno_count; $i++) { + if(!$arr_tno[$i] || !$arr_corp[$i] || !$arr_numb[$i]) + continue; + + $c_PayPlus->mf_set_modx_data( "tno", $arr_tno[$i] ); + $c_PayPlus->mf_set_modx_data( "mod_type", $mod_type ); + $c_PayPlus->mf_set_modx_data( "mod_ip", $cust_ip ); + $c_PayPlus->mf_set_modx_data( "mod_desc", $mod_desc ); + + $c_PayPlus->mf_set_modx_data( "deli_numb", $arr_numb[$i] ); + $c_PayPlus->mf_set_modx_data( "deli_corp", $arr_corp[$i] ); + + $c_PayPlus->mf_do_tx( $trace_no, $g_conf_home_dir, $g_conf_site_cd, "", $tran_cd, "", + $g_conf_gw_url, $g_conf_gw_port, "payplus_cli_slib", $ordr_idxx, + $cust_ip, "3" , 0, 0, $g_conf_key_dir, $g_conf_log_dir); // 응답 전문 처리 + + $res_cd = $c_PayPlus->m_res_cd; // 결과 코드 + $res_msg = $c_PayPlus->m_res_msg; // 결과 메시지 +} + +if($locale_change) + setlocale(LC_CTYPE, $def_locale); +?> \ No newline at end of file diff --git a/adm/shop_admin/orderform.php b/adm/shop_admin/orderform.php index a80202449..433fe298b 100644 --- a/adm/shop_admin/orderform.php +++ b/adm/shop_admin/orderform.php @@ -308,6 +308,8 @@ $pg_anchor = '