Open JeremyAtMethodMarketing opened 8 months ago
@JeremyAtMethodMarketing Did you guys ever figure out a solution? I don't want to upgrade to taxjar 2.2.0 if this is unresolved. Thx
@fweb no I haven't been able to find a solution and I haven't heard any from tech support.
This error means they failed to declare the $apiKey
before trying to access it on line 108. You should implement the following composer patch, you don't want to modify the core file directly.
diff --git a/vendor/taxjar/module-taxjar/Model/Transaction/Order.php b/vendor/taxjar/module-taxjar/Model/Transaction/Order.php
index 875d0c0..7dafc91 100644
--- a/vendor/taxjar/module-taxjar/Model/Transaction/Order.php
+++ b/vendor/taxjar/module-taxjar/Model/Transaction/Order.php
@@ -31,6 +31,8 @@ class Order extends \Taxjar\SalesTax\Model\Transaction
protected const SYNCABLE_COUNTRIES = ['US'];
+ protected $apiKey;
+
/**
* @var OrderInterface|AbstractModel
*/
Actually I like this solution much better: https://github.com/taxjar/taxjar-magento2-extension/issues/366#issuecomment-1955532451
Prerequisites
Description
I am on magento 2.4.6-p1 and using TaxJar magento2 extension 2.2.0. We are now on PHP 8.1-fpm. At checkout people are seeing deprecation notices and they believe that their orders are not being processed. They are going through but the notice is very concerning. I am also seeing that orders are not syncing to taxjar. We have not had an order sync since Dec 13, 2023.
Steps to Reproduce
Expected Result
No error message on screen shown to customers and order being synced to taxjar.
Actual Result
Orders not being synced and customers seeing deprecation notices on checkout success page.
Versions