Permalink
Browse files

- fixed shipping information for eZAuthorizeGateway e-mail

- fixed missing process var in eZCurlGateway
  • Loading branch information...
1 parent 092f51f commit ee052b2f4194a52fa9236794e3830f753393ea53 @xrowadmin xrowadmin committed Jun 25, 2007
Showing with 17 additions and 16 deletions.
  1. +16 −15 classes/ezauthorizegateway.php
  2. +1 −1 classes/ezcurlgateway.php
View
31 classes/ezauthorizegateway.php
@@ -504,7 +504,8 @@ function getOrderInfo( $order )
return false;
}
- function addAVS( &$aim ) {
+ function addAVS( &$aim )
+ {
// customer billing address
$aim->addField( 'x_first_name', $this->order_first_name );
$aim->addField( 'x_last_name', $this->order_last_name );
@@ -522,20 +523,20 @@ function addAVS( &$aim ) {
}
- function addShipping( &$aim ) {
- // customer shipping address
- $aim->addField( 'x_ship_to_first_name', $this->order_first_name );
- $aim->addField( 'x_ship_to_last_name', $this->order_last_name );
- $aim->addField( 'x_ship_to_company', $this->order_company );
-
- // does this match the default?? cause it is wrong with shop account handeler usage !
- // $aim->addField( 'x_ship_to_address', $this->order_street2 );
- //
- $aim->addField( 'x_ship_to_address', $this->order_street1 .' '. $this->order_street2 );
- $aim->addField( 'x_ship_to_city', $this->order_place );
- $aim->addField( 'x_ship_to_state', $this->order_state );
- $aim->addField( 'x_ship_to_zip', $this->order_zip );
- $aim->addField( 'x_ship_to_country', str_replace( " ", "%20", $this->order_country ) );
+ function addShipping( &$aim )
+ {
+ if ( $this->data['s_address1'] )
+ {
+ // customer shipping address
+ $aim->addField( 'x_ship_to_first_name', $this->data['s_first-name'] );
+ $aim->addField( 'x_ship_to_last_name', $this->data['s_last-name'] );
+ $aim->addField( 'x_ship_to_company', $this->data['s_city'] );
+ $aim->addField( 'x_ship_to_address', $this->data['s_address1'] .' '. $this->data['s_address2'] );
+ $aim->addField( 'x_ship_to_city', $this->data['s_city'] );
+ $aim->addField( 'x_ship_to_state', $this->data['s_state'] );
+ $aim->addField( 'x_ship_to_zip', $this->data['s_zip'] );
+ $aim->addField( 'x_ship_to_country', str_replace( " ", "%20", $this->data['s_country'] ) );
+ }
}
}
View
2 classes/ezcurlgateway.php
@@ -150,7 +150,7 @@ function execute( &$process, $event )
if ( !$errors ) {
$process->setAttribute( 'event_state', EZ_CURL_GATEWAY_DO_CURL );
- $this->storeHTTPInput();
+ $this->storeHTTPInput( $process );
}
else
{

0 comments on commit ee052b2

Please sign in to comment.