engage Authorize.net
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 19:11:17 +0000 (14:11 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 19:11:17 +0000 (14:11 -0500)
setting ship to address and description
for sending to Authorize.net

Toolkit/Contacts/PassPort.php

index b59d338..06d0cd0 100755 (executable)
@@ -600,20 +600,27 @@ class Toolkit_Contacts_PassPort
         $authNetUrl     = "https://secure.authorize.net/gateway/transact.dll";
 
         $authNetValues = array(
-            'x_login'          => $authNetLoginId,
-            'x_version'        => '3.1',
-            'x_delim_char'     => '|',
-            'x_delim_data'     => 'TRUE',
-            'x_type'           => 'AUTH_CAPTURE',
-            'x_method'         => 'CC',
-            "x_test_request"   => DEVELOPMENT ? "TRUE" : "FALSE",
-            'x_tran_key'       => $authNetTranKey,
-            'x_relay_response' => 'FALSE',
-            'x_card_num'       => $values['cc_num'],
-            'x_exp_date'       => implode('/', $values['cc_exp']),
-            'x_amount'         => $values['total_price'],
-            'x_first_name'     => $values['fname'],
-            'x_last_name'      => $values['lname'],
+            'x_login'              => $authNetLoginId,
+            'x_description'        => 'Gaylord Golf Mecca Passport',
+            'x_version'            => '3.1',
+            'x_delim_char'         => '|',
+            'x_delim_data'         => 'TRUE',
+            'x_type'               => 'AUTH_CAPTURE',
+            'x_method'             => 'CC',
+            "x_test_request"       => DEVELOPMENT ? "TRUE" : "FALSE",
+            'x_tran_key'           => $authNetTranKey,
+            'x_relay_response'     => 'FALSE',
+            'x_card_num'           => $values['cc_num'],
+            'x_exp_date'           => implode('/', $values['cc_exp']),
+            'x_amount'             => $values['total_price'],
+            'x_first_name'         => $values['fname'],
+            'x_last_name'          => $values['lname'],
+            'x_ship_to_first_name' => $values['fname'],
+            'x_ship_to_last_name'  => $values['lname'],
+            'x_ship_to_address'    => $values['address'],
+            'x_ship_to_city'       => $values['city'],
+            'x_ship_to_state'      => $values['state'],
+            'x_ship_to_zip'        => $values['zip']
         );
 
         $fields = '';