Quote Originally Posted by sonnyjlewis View Post
OK guys, I have an issue with my installation. 1.5.5f (upgraded from 1.5.5e original install) on an Apache server. I am using the taxcloud plugin as I'm participating in the Streamlined Sales Tax Initiative. When using the TaxCloud plugin, when someone checks out, they are presented with the order total, which shows product price, shipping, and tax properly. However, when their card gets charged, the tax amount isn't being collected. I've tried this with several payment processors so I'm certain it doesn't have to do with them. I think it's the way TaxCloud is passing the correct amount to the payment gateway but that's just a guess on my part.

I am running two different stores, both of which are on 1.5.5f and both are experiencing this issue. One of the stores was formerly on an older version, 1.3.somethingorother, and the taxcloud plugin for that version worked properly.

One current site is running PHP 7.1, and the other is running 5.6.3. Both are using MySQL 5.5.5-10.1.31-MariaDB.

Any thoughts on getting this to work right would be appreciated. If I had a clue about PHP I'd probably have this fixed but I'm no programmer and code mystifies me.

Any ideas on what the fix would be?

Thanks
Looks like the issue (at least with PayPal) is an API change in the PayPal module. The following change should fix the issue there.

Code:
--- a/taxcloud/includes/modules/payment/paypalwpp.php
+++ b/taxcloud/includes/modules/payment/paypalwpp.php
@@ -1274,9 +1274,9 @@ if (false) { // disabled until clarification is received about coupons in PayPal
       //TaxCloud hack for PayPal plugin
       $taxCloudTax = $_SESSION['taxcloudTaxTotal']; 
       if ( isset($taxCloudTax)) {
-           $optionsST['TAXAMT']      = round($taxCloudTax,2);
+           $optionsST['PAYMENTREQUEST_0_TAXAMT'] = round($taxCloudTax,2);
            //Update total
-           $optionsST['AMT'] = $optionsST['AMT'] + $taxCloudTax;
+           $optionsST['PAYMENTREQUEST_0_AMT'] = $optionsST['PAYMENTREQUEST_0_AMT'] + $taxCloudTax;
       }
       //End TaxCloud hack
This is around line 1274 in includes/modules/payment/paypalwpp.php for an unmodified ZC 1.5.5f. Replace the lines marked with minus signs (-) with the lines marked with plus signs (+).

The TaxCloud module touches a lot of core files, which means it isn't very modular. It's probably going to be a headache to maintain the module across ZC versions, and the official TaxCloud account on the forum (and their github) went silent three years ago. For one thing, the changes between ZC 1.5.5f and 1.5.6 mean that the same module can't be used across both.