Source for file LC_Page_Shopping_LoadPaymentModule.php
Documentation is available at LC_Page_Shopping_LoadPaymentModule.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php';
* 決済フローの妥当性検証は, トランザクションID等を使用して, 決済モジュール側で
* @author Kentaro Ohkouchi
* @version $Id: LC_Page_Shopping_LoadPaymentModule.php 20764 2011-03-22 06:26:40Z nanasess $
$order_id = $this->getOrderId();
if ($order_id === false) {
SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", true);
if ($module_path === false) {
SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true,
"モジュールファイルの取得に失敗しました。<br />この手続きは無効となりました。");
require_once $module_path;
* 受注IDをキーにして, 決済モジュールのパスを取得する.
* 決済モジュールが取得できた場合は, require 可能な決済モジュールのパスを返す.
* 受注IDが無効な場合, 取得したパスにファイルが存在しない場合は false
* @param integer $order_id 受注ID
* @return string|boolean成功した場合は決済モジュールのパス;
$objQuery = & SC_Query_Ex::getSingletonInstance();
ON T1.payment_id = T2.payment_id
$module_path = $objQuery->getOne($sql, array($order_id));
* 1. $_SESSION['order_id']
* 受注IDが取得できない場合は false を返す.
* @return integer|boolean受注IDの取得に成功した場合は受注IDを返す;
if (isset ($_SESSION['order_id'])
&& !SC_Utils_Ex::isBlank($_SESSION['order_id'])
&& SC_Utils_Ex::sfIsInt($_SESSION['order_id'])) {
return $_SESSION['order_id'];
if (isset ($_POST['order_id'])
&& !SC_Utils_Ex::isBlank($_POST['order_id'])
&& SC_Utils_Ex::sfIsInt($_POST['order_id'])) {
return $_POST['order_id'];
if (isset ($_GET['order_id'])
&& !SC_Utils_Ex::isBlank($_GET['order_id'])
&& SC_Utils_Ex::sfIsInt($_GET['order_id'])) {
return $_GET['order_id'];
* 決済モジュールから遷移する場合があるため, トークンチェックしない.
Documentation generated on Fri, 24 Feb 2012 14:02:18 +0900 by Seasoft
|