engage Authorize.net
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 19:00:58 +0000 (14:00 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 19:00:58 +0000 (14:00 -0500)
Toolkit/Contacts/PassPort.php

index f5c8ad0..b59d338 100755 (executable)
@@ -641,12 +641,9 @@ class Toolkit_Contacts_PassPort
     //    }}}
     public function processData($values)
     {
-        return parent::processData($values);
-
         $res = parent::processData($values);
         if ($res) {
             $res2 = $this->processAuthNet($values);
-//            echo '<pre>'.print_r($res2, true).'</pre>';exit;
             if (is_array($res2) && !empty($res2)) {
                 if ($res2[0] == 1) {
                     //    CC was Accepted.
@@ -662,11 +659,9 @@ class Toolkit_Contacts_PassPort
                 //    There was a CC processing error.
                 return false;
             }
+        } else {
+            return false;
         }
-        echo '<pre>'.print_r($res, true).'</pre>';
-        echo '<pre>'.print_r($values, true).'</pre>';
-        exit;
-
     }
 
     /**