Exemplo n.º 1
0
	</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";
Exemplo n.º 2
0
<?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">