$RcptTID, 'ApplNum'=>$RcptAuthCode, 'AuthDate'=>$AuthDate))."' "; } $sql = " update {$g5['g5_shop_order_table']} set od_misu = '{$info['od_misu']}' $add_update_sql "; if($info['od_misu'] == 0) $sql .= " , od_status = '입금' "; $sql .= " where od_id = '$od_id' "; sql_query($sql, FALSE); // 장바구니 상태변경 if($info['od_misu'] == 0) { $sql = " update {$g5['g5_shop_cart_table']} set ct_status = '입금' where od_id = '$od_id' "; sql_query($sql, FALSE); } } // 알림톡 발송 BEGIN: 입금완료(CU-OR03/AD-OR03) ------------------------------ // 주문정보 체크 $sql = "select od_name, od_hp, od_tel from {$g5['g5_shop_order_table']} where od_id = '$od_id' limit 1"; $od_result = sql_fetch($sql); $it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명 if (isset($od_result)) { $conditions = ['od_id' => $od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보 $cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원 $ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자 } // 알림톡 발송 END -------------------------------------------------------- } if($NICEPAY_payLog) { $logfile = fopen( $NICEPAY_log_path . "/nice_vacct_noti_result.log", "a+" ); fwrite( $logfile,"************************************************\r\n"); fwrite( $logfile,"PayMethod : ".$PayMethod."\r\n"); fwrite( $logfile,"MID : ".$MID."\r\n"); fwrite( $logfile,"MallUserID : ".$MallUserID."\r\n"); fwrite( $logfile,"Amt : ".$Amt."\r\n"); fwrite( $logfile,"name : ".$name."\r\n"); fwrite( $logfile,"GoodsName : ".$GoodsName."\r\n"); fwrite( $logfile,"TID : ".$TID."\r\n"); fwrite( $logfile,"MOID : ".$MOID."\r\n"); fwrite( $logfile,"AuthDate : ".$AuthDate."\r\n"); fwrite( $logfile,"ResultCode : ".$ResultCode."\r\n"); fwrite( $logfile,"ResultMsg : ".$ResultMsg."\r\n"); fwrite( $logfile,"VbankNum : ".$VbankNum."\r\n"); fwrite( $logfile,"FnCd : ".$FnCd."\r\n"); fwrite( $logfile,"VbankName : ".$VbankName."\r\n"); fwrite( $logfile,"VbankInputName : ".$VbankInputName."\r\n"); fwrite( $logfile,"RcptTID : ".$RcptTID."\r\n"); fwrite( $logfile,"RcptType : ".$RcptType."\r\n"); fwrite( $logfile,"RcptAuthCode : ".$RcptAuthCode."\r\n"); fwrite( $logfile,"CancelDate : ".$CancelDate."\r\n"); fwrite( $logfile,"************************************************\r\n"); fclose( $logfile ); } //************************************************************************************ //위에서 상점 데이터베이스에 등록 성공유무에 따라서 성공시에는 "OK"를 이니시스로 //리턴하셔야합니다. 아래 조건에 데이터베이스 성공시 받는 FLAG 변수를 넣으세요 //(주의) OK를 리턴하지 않으시면 이니시스 지불 서버는 "OK"를 수신할때까지 계속 재전송을 시도합니다 //기타 다른 형태의 PRINT( echo )는 하지 않으시기 바랍니다 if ($result) { echo "OK"; // 절대로 지우지마세요 } else { echo "FAIL"; // 절대로 지우지마세요 } //************************************************************************************* } }