www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > PHP

    PHP Discussion and technical support for using and deploying PHP based websites.

     
     
    Thread Tools Search this Thread Rate Thread Display Modes
    Prev Previous Post   Next Post Next
      #1  
    Old 03-18-2008, 12:19 AM
    RyanL RyanL is offline
    Registered User
     
    Join Date: Mar 2008
    Posts: 1
    Parse error: syntax error, unexpected T_EXIT

    I'm getting the following error:

    Parse error: syntax error, unexpected T_EXIT in /home/snh/public_html/AHYRadio/amember/plugins/payment/1shoppingcart/1shoppingcart.inc.php on line 1

    Here is what I have - the copying and pasting messed up the formatting - sorry!

    It was working fine, but I was told I could edit the line var $title = "1ShoppingCart" to whatever I wanted. I changed it to "Pay with Credit Card" and then I started getting this error.

    Any help would be greately appreciated!!

    <?phpif (!defined('INCLUDED_AMEMBER_CONFIG')) die("Direct access to this location is not allowed");/**** Author: Alex Scott* Email: alex@cgi-central.net* Web: http://www.cgi-central.net* Details: 1ShoppingCart Payment Plugin* FileName $RCSfile: paypal_r.inc.php,v $* Release: 3.0.9PRO ($Revision: 1.8 $)** Please direct bug reports,suggestions or feedback to the cgi-central forums.* http://www.cgi-central.net/forum/** aMember PRO is a commercial software. Any distribution is strictly prohibited.*/class payment_1shoppingcart extends amember_payment { var $title = "1ShoppingCart"; var $description = "All major credit cards accepted"; var $fixed_price=1; var $recurring=1; var $built_in_trials=1; function do_bill($amount, $title, $products, $u, $invoice){ global $config; $_SESSION['_amember_payment_id'] = $invoice; $vars = array( 'MerchantID' => $this->config['merchant_id'], 'ProductID' => $products[0]['1shoppingcart_id'], 'AMemberID' => $invoice, 'PostBackURL' => $config['root_url'] . "/plugins/payment/1shoppingcart/ipn.php", );
    Reply With Quote
     

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:10 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.