Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- fixed shipping information for eZAuthorizeGateway e-mail

- fixed missing process var in eZCurlGateway
  • Loading branch information...
commit ee052b2f4194a52fa9236794e3830f753393ea53 1 parent 092f51f
authored June 25, 2007
31  classes/ezauthorizegateway.php
@@ -504,7 +504,8 @@ function getOrderInfo( $order )
504 504
         return false;
505 505
     }
506 506
 
507  
-    function addAVS( &$aim ) {
  507
+    function addAVS( &$aim )
  508
+    {
508 509
         // customer billing address
509 510
         $aim->addField( 'x_first_name', $this->order_first_name );
510 511
         $aim->addField( 'x_last_name', $this->order_last_name );
@@ -522,20 +523,20 @@ function addAVS( &$aim ) {
522 523
 
523 524
     }
524 525
 
525  
-    function addShipping( &$aim ) {
526  
-        // customer shipping address
527  
-        $aim->addField( 'x_ship_to_first_name', $this->order_first_name );
528  
-        $aim->addField( 'x_ship_to_last_name', $this->order_last_name );
529  
-        $aim->addField( 'x_ship_to_company', $this->order_company );
530  
-
531  
-        // does this match the default?? cause it is wrong with shop account handeler usage !
532  
-        // $aim->addField( 'x_ship_to_address', $this->order_street2 );
533  
-        //
534  
-        $aim->addField( 'x_ship_to_address', $this->order_street1 .' '. $this->order_street2 );
535  
-        $aim->addField( 'x_ship_to_city', $this->order_place );
536  
-        $aim->addField( 'x_ship_to_state', $this->order_state );
537  
-        $aim->addField( 'x_ship_to_zip', $this->order_zip );
538  
-        $aim->addField( 'x_ship_to_country', str_replace( " ", "%20", $this->order_country ) );
  526
+    function addShipping( &$aim )
  527
+    {
  528
+        if ( $this->data['s_address1'] )
  529
+        {
  530
+            // customer shipping address
  531
+            $aim->addField( 'x_ship_to_first_name', $this->data['s_first-name'] );
  532
+            $aim->addField( 'x_ship_to_last_name', $this->data['s_last-name'] );
  533
+            $aim->addField( 'x_ship_to_company', $this->data['s_city'] );
  534
+            $aim->addField( 'x_ship_to_address', $this->data['s_address1'] .' '. $this->data['s_address2'] );
  535
+            $aim->addField( 'x_ship_to_city', $this->data['s_city'] );
  536
+            $aim->addField( 'x_ship_to_state', $this->data['s_state'] );
  537
+            $aim->addField( 'x_ship_to_zip', $this->data['s_zip'] );
  538
+            $aim->addField( 'x_ship_to_country', str_replace( " ", "%20", $this->data['s_country'] ) );       
  539
+        }
539 540
      }
540 541
 }
541 542
 
2  classes/ezcurlgateway.php
@@ -150,7 +150,7 @@ function execute( &$process, $event )
150 150
 
151 151
             if ( !$errors ) {
152 152
                 $process->setAttribute( 'event_state', EZ_CURL_GATEWAY_DO_CURL );
153  
-                $this->storeHTTPInput();
  153
+                $this->storeHTTPInput( $process );
154 154
             }
155 155
             else
156 156
             {

0 notes on commit ee052b2

Please sign in to comment.
Something went wrong with that request. Please try again.