Update order function calls
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Aug 2017 18:23:02 +0000 (14:23 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Aug 2017 18:23:02 +0000 (14:23 -0400)
For the billing and shipping

classes/glmMesGateway.php

index bfa9463..7be41a7 100644 (file)
@@ -861,22 +861,22 @@ class GlmMesGateway extends WC_Payment_Gateway
             }
 
             // Send billing information
-            $trans->setAvsRequest($this->cust_order->billing_address_1, $this->cust_order->billing_postcode);
+            $trans->setAvsRequest($this->cust_order->get_billing_address_1(), $this->cust_order->get_billing_postcode());
             $trans->setDynamicData(
-                $this->cust_order->billing_first_name . ' ' . $this->cust_order->billing_last_name, 
-                $this->cust_order->billing_city,
-                $this->cust_order->billing_state, 
-                $this->cust_order->billing_postcode,
-                $this->cust_order->billing_phone
+                $this->cust_order->get_billing_first_name() . ' ' . $this->cust_order->get_billing_last_name(),
+                $this->cust_order->get_billing_city(),
+                $this->cust_order->get_billing_state(),
+                $this->cust_order->get_billing_postcode(),
+                $this->cust_order->get_billing_phone()
             );
 
             // Send shipping infomration
-            $trans->setRequestField('ship_first_name', $this->cust_order->shipping_first_name);
-            $trans->setRequestField('ship_last_name', $this->cust_order->shipping_last_name);
-            $trans->setRequestField('ship_addr1', $this->cust_order->shipping_address_1);
-            $trans->setRequestField('ship_city', $this->cust_order->shipping_city);
-            $trans->setRequestField('ship_state', $this->cust_order->shipping_state);
-            $trans->setRequestField('ship_zip', $this->cust_order->shipping_postcode);
+            $trans->setRequestField('ship_first_name', $this->cust_order->get_shipping_first_name());
+            $trans->setRequestField('ship_last_name', $this->cust_order->get_shipping_last_name());
+            $trans->setRequestField('ship_addr1', $this->cust_order->get_shipping_address_1());
+            $trans->setRequestField('ship_city', $this->cust_order->get_shipping_city());
+            $trans->setRequestField('ship_state', $this->cust_order->get_shipping_state());
+            $trans->setRequestField('ship_zip', $this->cust_order->get_shipping_postcode());
 
             // Send Card data
             $trans->setRequestField('cvv2', $this->cc_cvc);