Example #1
0
$Id$

  osCmax e-Commerce
  http://www.oscmax.com

  Copyright 2000 - 2011 osCmax

  Released under the GNU General Public License
*/
// Copyright 2008 Brian Burton
chdir('../../');
include 'includes/application_top.php';
include DIR_FS_CATALOG . DIR_WS_INCLUDES . 'configure.php';
include DIR_WS_CLASSES . 'order.php';
include DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php';
$paypal_wpp = new paypal_wpp_admin();
$transactions = $paypal_wpp->get_transactions();
?>
<html>
  <head>
    <title><?php 
echo WPP_REFUND_TITLE;
?>
</title>
    <style type="text/css">
      body {
        margin: 0;
      }
      table, input, select {
        font: 11px arial, verdana;
      }
Example #2
0
        }
        $q_customer .= ')';
        $q_company .= ')';
        $q_orderno .= ')';
        $search_query = ' AND (' . $q_customer . ' OR ' . $q_company . ' OR ' . $q_orderno . ')';
    }
}
// ends if ($search_query = $_GET['q'])
// EOF: Orders search by customer information
$oID = isset($_GET['oID']) ? $_GET['oID'] : '';
$action = isset($_GET['action']) ? $_GET['action'] : '';
$pdf_check = isset($_GET['pdf_check']) ? $_GET['pdf_check'] : '';
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
include DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php';
$paypal_wpp = new paypal_wpp_admin();
//---PayPal WPP Modification END ---//
$orders_statuses = array();
$orders_status_array = array();
$orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int) $languages_id . "'");
while ($orders_status = tep_db_fetch_array($orders_status_query)) {
    $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']);
    $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];
}
if (tep_not_null($pdf_check)) {
    define('BATCH_PRINT_INC', DIR_WS_MODULES . 'batch_print/');
    define('BATCH_PDF_DIR', BATCH_PRINT_INC . 'temp_pdf/');
    define('BATCH_PRINT_FILE', 'batch_print.php');
    define('BATCH_PDF_FILE', 'batch_orders.pdf');
    require_once DIR_WS_CLASSES . 'order.php';
    require DIR_WS_FUNCTIONS . 'batch_print.php';
$Id$

  osCmax e-Commerce
  http://www.oscmax.com

  Copyright 2000 - 2011 osCmax

  Released under the GNU General Public License
*/
// Copyright 2008 Brian Burton
chdir('../../');
include 'includes/application_top.php';
include DIR_FS_CATALOG . DIR_WS_INCLUDES . 'configure.php';
include DIR_WS_CLASSES . 'order.php';
include DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php';
$paypal_wpp = new paypal_wpp_admin();
$transactions = $paypal_wpp->get_transactions();
?>
<html>
  <head>
    <title><?php 
echo WPP_CAPTURE_TITLE;
?>
</title>
    <style type="text/css">
      body {
        margin: 0;
      }
      table, input, select {
        font: 11px arial, verdana;
      }
        if ($transaction['payment_type']) {
            $transaction_info .= "Payment Type: " . $transaction['payment_type'] . "<br />";
        }
        if ($transaction['payment_status']) {
            $transaction_info .= "Payment Status: <b>" . $transaction['payment_status'] . "</b><br />";
        }
        if ($transaction['transaction_avs']) {
            $transaction_info .= "AVS Code: " . $transaction['transaction_avs'] . "<br />";
        }
        if ($transaction['transaction_cvv2']) {
            $transaction_info .= "CVV2 Code: " . $transaction['transaction_cvv2'] . "<br />";
        }
        if ($transaction['transaction_msgs']) {
            $transaction_info .= "Messages: " . $transaction['transaction_msgs'] . "<br />";
        }
        return $transaction_info;
    }
}
$paypal_wpp = new paypal_wpp_admin();
//Catch actions
switch ($_GET['action']) {
    case 'refund':
        $paypal_wpp->case_refund();
        break;
    case 'charge':
        $paypal_wpp->case_charge();
        break;
    case 'capture':
        $paypal_wpp->case_capture();
        break;
}
Example #5
0
$Id$

  osCmax e-Commerce
  http://www.oscmax.com

  Copyright 2000 - 2011 osCmax

  Released under the GNU General Public License
*/
// Copyright 2008 Brian Burton
chdir('../../');
include 'includes/application_top.php';
include DIR_FS_CATALOG . DIR_WS_INCLUDES . 'configure.php';
include DIR_WS_CLASSES . 'order.php';
include DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php';
$paypal_wpp = new paypal_wpp_admin();
$transactions = $paypal_wpp->get_transactions();
?>
<html>
  <head>
    <title><?php 
echo WPP_CHARGE_TITLE;
?>
</title>
    <style type="text/css">
      body {
        margin: 0;
      }
      table, input, select {
        font: 11px arial, verdana;
      }