diff --git a/includes/class-wc-paghiper-base-gateway.php b/includes/class-wc-paghiper-base-gateway.php index 91d52bc..39f818b 100755 --- a/includes/class-wc-paghiper-base-gateway.php +++ b/includes/class-wc-paghiper-base-gateway.php @@ -374,7 +374,8 @@ public function payment_fields() { array_key_exists('billing_company', $post_data) && !empty($post_data['billing_company']) ) || - (is_array($post_data) && + (isset($post_data) && + is_array($post_data) && array_key_exists('_'.$this->gateway->id.'_cpf_cnpj', $post_data) && array_key_exists('_'.$this->gateway->id.'_payer_name', $post_data) && !empty($post_data['_'.$this->gateway->id.'_payer_name']) diff --git a/woocommerce-paghiper.php b/woocommerce-paghiper.php index 43c3a38..880bc2f 100755 --- a/woocommerce-paghiper.php +++ b/woocommerce-paghiper.php @@ -5,7 +5,7 @@ * Description: Ofereça a seus clientes pagamento por PIX e boleto bancário com a PagHiper. Fácil, prático e rapido! * Author: PagHiper Pagamentos * Author URI: https://www.paghiper.com - * Version: 2.4.2-rc2 + * Version: 2.4.2-rc3 * Tested up to: 6.7.2 * License: GPLv3 * License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -33,7 +33,7 @@ class WC_Paghiper { * * @var string */ - const VERSION = '2.4.2-rc2'; + const VERSION = '2.4.2-rc3'; /** * Instance of this class.