Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

503
 
523
 
523
 
payment.php
_> 11 <?php
  22 /*
<> 3 -  $Id: payment.php 503 2006-04-19 00:19:25Z hpdl $
   3+  $Id: payment.php 523 2006-04-25 14:36:09Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
5858     }
  5959 
  6060 // class methods
<> 61 -    function sendTransactionToGateway($url, $parameters, $header='', $method='post') {
   61+    function sendTransactionToGateway($url, $parameters, $header = '', $method = 'post', $certificate = '') {
6262       if (empty($header) || (is_array($header) === false)) {
  6363         $header = array();
  6464       }
     
 !
8787         curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
  8888       }
  8989 
<>  90+      if (empty($certificate) === false) {
   91+        curl_setopt($curl, CURLOPT_SSLCERT, $certificate);
   92+      }
   93+
9094       curl_setopt($curl, CURLOPT_HEADER, 0);
  9195       curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
  9296       curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
     
 !
246250       }
  247251     }
  248252 
<> 249 -    function before_process() {
   253+    function process() {
250254       if (is_array($this->_modules)) {
  251255         if (is_object($GLOBALS[$this->selected_module]) && $GLOBALS[$this->selected_module]->isEnabled()) {
<> 252 -          return $GLOBALS[$this->selected_module]->before_process();
   256+          return $GLOBALS[$this->selected_module]->process();
253257         }
  254258       }
  255259     }
  256260 
<> 257 -    function after_process() {
  258 -      if (is_array($this->_modules)) {
  259 -        if (is_object($GLOBALS[$this->selected_module]) && $GLOBALS[$this->selected_module]->isEnabled()) {
  260 -          return $GLOBALS[$this->selected_module]->after_process();
  261 -        }
  262 -      }
  263 -    }
  264 -
<_ 265261     function get_error() {
  266262       if (is_array($this->_modules)) {
  267263         if (is_object($GLOBALS[$this->selected_module]) && $GLOBALS[$this->selected_module]->isEnabled()) {