Update the calls for cust_order properties
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Aug 2017 18:27:51 +0000 (14:27 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Aug 2017 18:27:51 +0000 (14:27 -0400)
Updating the ones Chuck had commented out.

classes/glmMesGateway.php

index 7be41a7..09b384d 100644 (file)
@@ -1070,26 +1070,26 @@ class GlmMesGateway extends WC_Payment_Gateway
         /*
          * Other data available from WooCommerce
          *
-         * $this->cust_order->billing_first_name,
-         * $this->cust_order->billing_last_name,
-         * $this->cust_order->billing_address_1,
-         * $this->cust_order->billing_city,
-         * $this->cust_order->billing_state,
-         * $this->cust_order->billing_postcode,
-         * $this->cust_order->billing_country,
-         * $this->cust_order->billing_phone,
-         * $this->cust_order->billing_email,
+         * $this->cust_order->get_billing_first_name(),
+         * $this->cust_order->get_billing_last_name(),
+         * $this->cust_order->get_billing_address_1(),
+         * $this->cust_order->get_billing_city(),
+         * $this->cust_order->get_billing_state(),
+         * $this->cust_order->get_billing_postcode(),
+         * $this->cust_order->get_billing_country(),
+         * $this->cust_order->get_billing_phone(),
+         * $this->cust_order->get_billing_email(),
          *
-         * $this->cust_order->shipping_first_name,
-         * $this->cust_order->shipping_last_name,
-         * $this->cust_order->shipping_company,
-         * $this->cust_order->shipping_address_1,
-         * $this->cust_order->shipping_city,
-         * $this->cust_order->shipping_country,
-         * $this->cust_order->shipping_state,
-         * $this->cust_order->shipping_postcode,
+         * $this->cust_order->get_shipping_first_name(),
+         * $this->cust_order->get_shipping_last_name(),
+         * $this->cust_order->get_shipping_company(),
+         * $this->cust_order->get_shipping_address_1(),
+         * $this->cust_order->get_shipping_city(),
+         * $this->cust_order->get_shipping_country(),
+         * $this->cust_order->get_shipping_state(),
+         * $this->cust_order->get_shipping_postcode(),
          *
-         * $this->cust_order->user_id,
+         * $this->cust_order->get_user_id(),
          *
          */