diff --git a/CHANGELOG.md b/CHANGELOG.md index 2521d80d..1dd83fe3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +# 1.10.1 +* Fix - Removed methods to prevent fatal error [#412](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/412) + # 1.10.0 * Feature - Removed restriction on guest users for sandbox mode [#406](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/406) * Feature - Showing some EBANX order details on admin order details page [#404](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/404) diff --git a/woocommerce-gateway-ebanx/includes/class-wc-ebanx-gateway.php b/woocommerce-gateway-ebanx/includes/class-wc-ebanx-gateway.php index e674fb96..619cfcd1 100644 --- a/woocommerce-gateway-ebanx/includes/class-wc-ebanx-gateway.php +++ b/woocommerce-gateway-ebanx/includes/class-wc-ebanx-gateway.php @@ -609,14 +609,14 @@ protected function request_data($order) */ protected function getTransactionAddress($attr = '') { - if (empty(WC()->customer) || is_admin() || (empty($_POST['billing_country']) && empty(WC()->customer->get_billing_country()))) { + if (empty(WC()->customer) || is_admin() || (empty($_POST['billing_country']) && empty(WC()->customer->get_country()))) { return false; } if (!empty($_POST['billing_country'])) { $this->address['country'] = trim(strtolower($_POST['billing_country'])); } else { - $this->address['country'] = trim(strtolower(WC()->customer->get_billing_country())); + $this->address['country'] = trim(strtolower(WC()->customer->get_country())); } if ($attr !== '' && !empty($this->address[$attr])) { diff --git a/woocommerce-gateway-ebanx/readme.txt b/woocommerce-gateway-ebanx/readme.txt index a1e13f94..3fb70fcc 100644 --- a/woocommerce-gateway-ebanx/readme.txt +++ b/woocommerce-gateway-ebanx/readme.txt @@ -3,7 +3,7 @@ Contributors: ebanxwp Tags: credit card, boleto, ebanx, woocommerce, approval rate, conversion rate, brazil, mexico, peru, colombia, chile, oxxo, baloto, cash payment, local payment one-click payment, installments, alternative payments, accept more payments Requires at least: 4.0 Tested up to: 4.7 -Stable tag: 1.10.0 +Stable tag: 1.10.1 License: MIT License URI: https://opensource.org/licenses/MIT @@ -136,6 +136,9 @@ Yes, you can. == Changelog == += 1.10.1 = +* Fix - Removed methods to prevent fatal error [#412](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/412) + = 1.10.0 = * Feature - Removed restriction on guest users for sandbox mode [#406](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/406) * Feature - Showing some EBANX order details on admin order details page [#404](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/404) diff --git a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php index c3426d74..6e4aae53 100644 --- a/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php +++ b/woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php @@ -5,7 +5,7 @@ * Description: Offer Latin American local payment methods & increase your conversion rates with the solution used by AliExpress, AirBnB and Spotify in Brazil. * Author: EBANX * Author URI: https://www.ebanx.com/business/en - * Version: 1.10.0 + * Version: 1.10.1 * License: MIT * Text Domain: woocommerce-gateway-ebanx * Domain Path: /languages @@ -40,7 +40,7 @@ class WC_EBANX * * @var string */ - const VERSION = '1.10.0'; + const VERSION = '1.10.1'; const DIR = __FILE__;