Changeset 861
- Timestamp:
- 07/07/08 08:39:09 (2 months ago)
- Files:
-
- trunk/common/lib/epayment/methods/paypal.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/common/lib/epayment/methods/paypal.php
r837 r861 9 9 function paypal() { 10 10 global $order; 11 11 12 12 $this->code = 'paypal'; 13 13 $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; … … 15 15 $this->sort_order = 1; 16 16 $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); 17 $this->enabled = false;18 17 //$this->enabled = true; 18 19 19 $this->form_action_url = PAYPAL_PAYMENT_URL; 20 20 } … … 23 23 function update_status() { 24 24 global $order; 25 25 26 26 if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { 27 27 $check_flag = false; … … 36 36 } 37 37 } 38 38 39 39 if ($check_flag == false) { 40 40 $this->enabled = false; … … 61 61 function process_button($transactionID = 0, $key= "") { 62 62 global $order, $currencies, $currency; 63 63 64 64 $my_currency = MODULE_PAYMENT_PAYPAL_CURRENCY; 65 65 if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { … … 81 81 tep_draw_hidden_field('return', tep_href_link("userinfo.php", '', 'SSL')) . 82 82 tep_draw_hidden_field('cancel_return', tep_href_link("userinfo.php", '', 'SSL')); 83 83 84 84 return $process_button_string; 85 85 }
