From: Steve Sutton Date: Mon, 7 Aug 2017 18:23:02 +0000 (-0400) Subject: Update order function calls X-Git-Tag: v1.1.3^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b35d74b11b451991ba2b4e6822af502f4d6522c5;p=WP-Plugins%2Fglm-woocommerce-merchant-e-solutions-gateway.git Update order function calls For the billing and shipping --- diff --git a/classes/glmMesGateway.php b/classes/glmMesGateway.php index bfa9463..7be41a7 100644 --- a/classes/glmMesGateway.php +++ b/classes/glmMesGateway.php @@ -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);