本文整理汇总了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";
示例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">