当前位置: 首页>>代码示例>>PHP>>正文


PHP payment::selection方法代码示例

本文整理汇总了PHP中payment::selection方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::selection方法的具体用法?PHP payment::selection怎么用?PHP payment::selection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在payment的用法示例。


在下文中一共展示了payment::selection方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('clear.gif', '100%', '10'); ?></td>
      </tr>
      </table>
<?php
  }
?>
    <table class="infoBox" width="80%" cellspacing="0" cellpadding="2" align=center>

<?php
  $selection = $payment_modules->selection();
  
  if (sizeof($selection) > 1) {
?>

           <tr height=10>
                <td class="infoBoxHeading">&nbsp;</td>
                <td class="infoBoxHeading" width="15%" valign="top" align="center"><b><?php echo "Please Select"; ?></b></td>
                <td class="infoBoxHeading" width="10%" >&nbsp;</td>
                <td class="infoBoxHeading"  width="75%" valign="top"><b><?php echo "Payment Method"; ?><b></td>

           </tr>
<?php
  } else {
?>
          <tr>
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:checkout_payment.php

示例2: order

    if ($check_address->fields['total'] != '1') {
        $_SESSION['billto'] = $_SESSION['customer_default_address_id'];
        $_SESSION['payment'] = '';
    }
}
require DIR_WS_CLASSES . 'order.php';
$order = new order();
// Load the selected shipping module(needed to calculate tax correctly)
require DIR_WS_CLASSES . 'shipping.php';
$shipping_modules = new shipping($_SESSION['shipping']);
require DIR_WS_CLASSES . 'order_total.php';
$order_total_modules = new order_total();
$order_total_modules->collect_posts();
$order_total_modules->pre_confirmation_check();
//  $_SESSION['comments'] = '';
$comments = $_SESSION['comments'];
$showTotal = $_SESSION['cart']->show_total();
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
// load all enabled payment modules
require DIR_WS_CLASSES . 'payment.php';
$payment_modules = new payment();
$flagOnSubmit = sizeof($payment_modules->selection());
require DIR_WS_MODULES . zen_get_module_directory('require_languages.php');
if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
    $messageStack->add('checkout_payment', $error['error'], 'error');
}
$breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2);
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_PAYMENT');
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:header_php.php

示例3: unset

        if (isset($_SESSION['payment'])) {
            unset($_SESSION['payment']);
        }
    }
}
require 'includes/classes/class_order.php';
$oOrder = new order();
require 'includes/classes/class_order_total.php';
$oOrderTotalModules = new order_total();
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
$total_count = $_SESSION['cart']->count_contents_virtual();
// load all enabled payment modules
require 'includes/classes/class_payment.php';
$oPaymentModules = new payment();
$selection = $oPaymentModules->selection();
$credit_selection = $oOrderTotalModules->credit_selection();
// links breadcrumb
$oBreadcrumb->add($aLang['navbar_title_1'], oos_href_link($aPages['checkout_shipping'], '', 'SSL'));
$oBreadcrumb->add($aLang['navbar_title_2'], oos_href_link($aPages['checkout_payment'], '', 'SSL'));
if (ENABLE_SSL == '1') {
    $condition_link = OOS_HTTPS_SERVER;
} else {
    $condition_link = OOS_HTTP_SERVER;
}
$condition_link .= OOS_SHOP . OOS_MEDIA . $sLanguage . '/' . $aFilename['conditions_download'];
ob_start();
require 'js/checkout_payment.js.php';
print $oPaymentModules->javascript_validation();
$javascript = ob_get_contents();
ob_end_clean();
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:checkout_payment.php

示例4: payment

$order_total_modules = new order_total();
$order_total_modules->collect_posts();
$order_total_modules->pre_confirmation_check();
// GV Code End
// load the selected payment module
require DIR_WS_CLASSES . 'payment.php';
if (isset($_SESSION['credit_covers'])) {
    $_SESSION['payment'] = 'no_payment';
}
// GV Code Start/End ICW added for CREDIT CLASS
unset($order);
$payment_modules = new payment($_SESSION['payment']);
$order = new order();
// GV Code line changed
// BOF GM_MOD:
if (is_array($payment_modules->modules) && sizeof($payment_modules->selection()) > 1 && !is_object(${$_SESSION}['payment']) && !isset($_SESSION['credit_covers']) || is_object(${$_SESSION}['payment']) && ${$_SESSION}['payment']->enabled == false) {
    //	xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
    $_SESSION['gm_error_message'] = urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED);
    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
// BOF GM_MOD saferpay
if (is_array($payment_modules->modules) && strpos($_SESSION['payment'], 'saferpaygw') === false) {
    $payment_modules->pre_confirmation_check();
}
// EOF GM_MOD saferpay
// load the selected shipping module
require DIR_WS_CLASSES . 'shipping.php';
$shipping_modules = new shipping($_SESSION['shipping']);
// Stock Check
if (STOCK_ALLOW_CHECKOUT != 'true') {
    $products = $_SESSION['cart']->get_products();
开发者ID:digitaldevelopers,项目名称:gambio-gx2-bitcoin-payment,代码行数:31,代码来源:checkout_confirmation.php


注:本文中的payment::selection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。