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


PHP order::getPayments方法代码示例

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


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

示例1: array

	</td><td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="dataTableRow">
  <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent">New Payment Information:</td>
	</tr>
	<tr>
	  <td class="main">
<?php 
    // # Retrieve available payment modules for checkout
    $payset = tep_module('checkout');
    $paymods = $payset->getModules();
    $paymods['payment_manual'] = tep_module('payment_manual', 'payment');
    $pay_selbox = array();
    $onfile_selbox = array();
    foreach ($order->getPayments() as $mod) {
        $ac = $mod->checkStoredPaymentInfo();
        if (!empty($ac)) {
            $pay_selbox[] = array('id' => $mod->payid . ':' . get_class($mod), 'text' => 'On File: ' . $ac);
        }
    }
    foreach ($paymods as $mkey => $mod) {
        $pay_selbox[] = array('id' => $mkey, 'text' => $mod->getName());
        if ($mod->isRecurrable()) {
            $onfile_selbox[] = array('id' => $mkey, 'text' => $mod->getName());
        }
    }
    $selmod = empty($order->info['payment_method']) ? $pay_selbox[0]['id'] : $order->info['payment_method'];
    echo '<div id="payment_on_file" style="display:none; padding:5px 0 15px 0">';
    echo 'using ' . tep_draw_pull_down_menu('payment_on_file', $onfile_selbox);
    echo "</div>\n";
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:30,代码来源:edit_orders.php

示例2: currencies

<?php

require 'includes/application_top.php';
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
require DIR_WS_CLASSES . 'phpqrcode.php';
$oID = tep_db_prepare_input($_GET['oID']);
$orders_date = tep_db_query("select date_purchased FROM " . TABLE_ORDERS . " WHERE orders_id = '" . $oID . "'");
$orders_date = mysql_result($orders_date, 0);
$shipping_method = tep_db_query("select shipping_method from " . TABLE_ORDERS . " WHERE orders_id = '" . $oID . "'");
$shipping_method = mysql_result($shipping_method, 0);
$shipping_method = str_replace('upsxml_', '', $shipping_method);
include DIR_WS_CLASSES . 'order.php';
$order = new order($oID);
$order->getPayments();
$payments = $order->getPayments();
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php 
echo TITLE;
?>
</title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

<style type="text/css">
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:31,代码来源:invoice.php


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