diff --git a/src/Helper/Utils.php b/src/Helper/Utils.php index d34cc941..68c1a082 100644 --- a/src/Helper/Utils.php +++ b/src/Helper/Utils.php @@ -677,7 +677,7 @@ public static function build_document_from_order(Order $order) ); } - if (!empty($order->billing_cpf)) { + if (!empty($order->billing_cnpj)) { return array( 'type' => 'company', 'value' => $order->billing_cnpj,