From b35d74b11b451991ba2b4e6822af502f4d6522c5 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 7 Aug 2017 14:23:02 -0400 Subject: [PATCH] Update order function calls For the billing and shipping --- classes/glmMesGateway.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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); -- 2.17.1