Originally Posted by
lat9
Did you try the search ... including those single-quotes around the value?
YIKES! My mind didn't even register the single quotes. OK, that resulted in a much more manageable 38 instances of 'AMT' being found, all within PayPal files with the exception of a group in a TaxCloud provided file (located in /includes/modules/payment/paypalwpp.php)--see lines below.
Code:
Line # 962 : 'comments' => 'AUTHORIZATION ADDED. Trans ID: ' . urldecode($response['TRANSACTIONID']) . "\n" . ' Amount:' . urldecode($response['AMT']) . ' ' . $currency,
Line # 969 : $messageStack->add_session(sprintf(MODULE_PAYMENT_PAYPALWPP_TEXT_AUTH_INITIATED, urldecode($response['AMT'])), 'success');
Line #1024 : if (!isset($response['AMT'])) $response['AMT'] = $captureAmt;
Line #1031 : 'comments' => 'FUNDS COLLECTED. Trans ID: ' . urldecode($response['TRANSACTIONID']) . $response['PNREF']. "\n" . ' Amount: ' . urldecode($response['AMT']) . ' ' . $currency . "\n" . 'Time: ' . urldecode($response['ORDERTIME']) . "\n" . (isset($response['RECEIPTID']) ? 'Receipt ID: ' . urldecode($response['RECEIPTID']) : 'Auth Code: ' . (isset($response['AUTHCODE']) && $response['AUTHCODE'] != '' ? $response['AUTHCODE'] : $response['CORRELATIONID'])) . (isset($response['PPREF']) ? "\nPPRef: " . $response['PPREF'] : '') . "\n" . $captureNote,
Line #1038 : $messageStack->add_session(sprintf(MODULE_PAYMENT_PAYPALWPP_TEXT_CAPT_INITIATED, urldecode($response['AMT']), urldecode($response['RECEIPTID'] . (isset($response['AUTHCODE']) && $response['AUTHCODE'] != '' ? $response['AUTHCODE'] : $response['CORRELATIONID']) ). $response['PNREF']), 'success');
Line #1279 : $optionsST['AMT'] = $optionsST['AMT'] + $taxCloudTax;
Line #1443 : // $stDiffTaxOnly = (strval($sumOfLineItems - $sumOfLineTax - round($optionsST['AMT'], 2)) + 0);
Line #1495 : /*if ($optionsST['AMT'] < $optionsST['TAXAMT']) */ $optionsST['PAYMENTREQUEST_0_TAXAMT'] = 0;
Line #1496 : /*if ($optionsST['AMT'] < $optionsST['SHIPPINGAMT']) */ $optionsST['PAYMENTREQUEST_0_SHIPPINGAMT'] = 0;
Line #1532 : if (strstr($key, 'AMT')) $optionsLI[$key] = round($value, ((int)$currencies->get_decimal_places($restrictedCurrency) == 0 ? 0 : 2));
Line #1723 : $existingAmt = $options['AMT'];
Line #1724 : $options['AMT'] = $existingAmt + $flatRate;
However, I feel like the issue lies deeper, quite possibly within the taxcloud module, because the Square module wouldn't have anything to do with the PayPal files, would it? And Square was where I first noticed the problem.
Maybe I'm just totally blind and missing something? Please have patience with me.... I feel like I'm learning something, but it seems to be very slow going and I still feel as though I'm trying to write in Cyrillic while only knowing English.
Perhaps I should offer a bounty of a free handmade journal from my website (which is one of the two sites where I'm trying to get this to work properly) to the person who solves this puzzle! The fact that it is an issue on two totally unrelated stores makes me think there's a bug somewhere....
Bookmarks