Changeset 861

Show
Ignore:
Timestamp:
07/07/08 08:39:09 (2 months ago)
Author:
areski
Message:

paypal issue

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/epayment/methods/paypal.php

    r837 r861  
    99    function paypal() { 
    1010                global $order; 
    11                  
     11 
    1212                $this->code = 'paypal'; 
    1313                $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; 
     
    1515                $this->sort_order = 1; 
    1616                $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); 
    17                 $this->enabled = false; 
    18                  
     17                //$this->enabled = true; 
     18 
    1919                $this->form_action_url = PAYPAL_PAYMENT_URL; 
    2020    } 
     
    2323    function update_status() { 
    2424                global $order; 
    25                  
     25 
    2626                if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { 
    2727                        $check_flag = false; 
     
    3636                                } 
    3737                        } 
    38                          
     38 
    3939                        if ($check_flag == false) { 
    4040                                $this->enabled = false; 
     
    6161    function process_button($transactionID = 0, $key= "") { 
    6262                global $order, $currencies, $currency; 
    63                  
     63 
    6464                $my_currency = MODULE_PAYMENT_PAYPAL_CURRENCY; 
    6565                if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { 
     
    8181                                                           tep_draw_hidden_field('return', tep_href_link("userinfo.php", '', 'SSL')) . 
    8282                                                           tep_draw_hidden_field('cancel_return', tep_href_link("userinfo.php", '', 'SSL')); 
    83                  
     83 
    8484                return $process_button_string; 
    8585    } 


Google