Location: PHPKode > scripts > Free PHP Shopping Cart > FPHPSC/MakePayment.php
<? 
//////////////////////////////////////////////////////////////////////
// The freebert.com Free PHP Shopping Cart:
// Version 0.80 - July 14th, 2009
// License / Terms of Use:
// Free to use, edit & customize, so long as the freebert.com logo, 
// the 'Powered By The Free PHP Shopping Cart' text & links 
// remain displayed on the bottom of every visable shopping cart page. 
// Redistribution in whole or in part of any page or function within 
// the freebert.com Free PHP Shopping Cart is strictly forbidden
// without the express written consent from freebert.com.
// Copyright (c) 2007 - 2009  by Colin Burke - freebert.com
// Contact: hide@address.com
// Support: http://www.freebert.com/Wiki/index.php/FPHPSC
// NOTE: If you want a cart script package with more features like
// customer accounts, database integration, administration section,
// online customer orderstatus section and more, OR
// if you simply want to legally remove the logo & links and
// continue to use the freebert.com Free PHP Shopping Cart
// you may do so by buying a domain license for the freebert.com
// Deluxe PHP SQL Shopping Cart Script. For details go to:
// http://www.freebert.com/Products/DeluxePHPSQLShoppingCart/ 
//////////////////////////////////////////////////////////////////////

session_start();
// Load Settings
require_once('Local_Settings.php');

// Load Functions
require_once('inc/functions/Cart_Templates.php');
require_once('inc/functions/Cart_Functions.php');

//Load Relevant payment_mods
require_once('inc/payment_mods/MONEYORDER_Functions.php');
require_once('inc/payment_mods/PAYPAL_Functions.php');
require_once('inc/payment_mods/PHONEORDER_Functions.php');

//Assign Local Vars
$PayType = cleanvalue($_POST['PayType']);

// Get Cart Totals
$Cart_Totals=GetCartTotals($Session_Prefix);

// Check For MoneyOrder Display
if ($PayType=='MoneyOrder')
{
  echo Create_MoneyOrder_Info($Arr_MoneyOrder,$Site_Title,$Site_Domain,$Session_Prefix,$Currency_Symbol,$Currency_Code);
  die;
} 

// Do HTML Header
Open_Cart_HTML($Site_Script_Root_Directory,$CSS_Filename,$Site_Title.' - Make Payment',"
<META NAME='keywords' CONTENT='".$Site_Title." Make Payment'>
");

include('inc/skin/Overall_Header.php');
?>
<br>
<table width="100%" border="0" align="center"> 
  <tr> 
    <td valign="top"><div align="center">
<? echo Cart_Menu(3); ?><br />
      <table width='600' border='0'>
        <tr>
          <td><div align='center' class='CartPageInfoBox CartPageInfoBG Bold'>
To complete your order, please make your payment via your choosen method below. <br /><br />
            <table width="90%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#FFFF00">
              <tr>
                <td><div align="center">
<?
if ($PayType=='PayPal')
{
  echo Display_PayPal_Button($Arr_PayPal,$Session_Prefix);
} 
elseif ($PayType=='PhoneOrder')
{
  echo Display_PhoneOrder_Button($Arr_PhoneOrder);
} 
?><br />

                </div></td>
              </tr>
            </table><br />
          </div></td>
        </tr>
      </table><br />
      <table width="650" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr>
          <td colspan="3"><div class="CartContentsBG CartContentsBox">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div align="center"><span class="TitleTextColor">Order Details: </span></div></td>
              </tr>
              <tr>
                <td valign="top"><div align="center">
<?
echo DisplayCartWShipping($Session_Prefix,$Currency_Symbol,$Currency_Code);
?><br />
                </div></td>
              </tr>
            </table>
          </div></td>
        </tr>
      </table><br /><br />
    </div></td> 
  </tr> 
</table>
<?
include('inc/skin/Overall_Footer.php');
// Do HTML footer
Close_Cart_HTML($Site_Domain,$Site_Script_Root_Directory);

//////////////////////////////////////////////////////////////////////
// The freebert.com Free PHP Shopping Cart:
// Version 0.80 - July 14th, 2009
// License / Terms of Use:
// Free to use, edit & customize, so long as the freebert.com logo, 
// the 'Powered By The Free PHP Shopping Cart' text & links 
// remain displayed on the bottom of every visable shopping cart page. 
// Redistribution in whole or in part of any page or function within 
// the freebert.com Free PHP Shopping Cart is strictly forbidden
// without the express written consent from freebert.com.
// Copyright (c) 2007 - 2009  by Colin Burke - freebert.com
// Contact: hide@address.com
// Support: http://www.freebert.com/Wiki/index.php/FPHPSC
// NOTE: If you want a cart script package with more features like
// customer accounts, database integration, administration section,
// online customer orderstatus section and more, OR
// if you simply want to legally remove the logo & links and
// continue to use the freebert.com Free PHP Shopping Cart
// you may do so by buying a domain license for the freebert.com
// Deluxe PHP SQL Shopping Cart Script. For details go to:
// http://www.freebert.com/Products/DeluxePHPSQLShoppingCart/ 
//////////////////////////////////////////////////////////////////////
?>
Return current item: Free PHP Shopping Cart