Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,876
- Plugin Contributions:
- 7
paypalwpp.php inserts a shipping address outside the zone definition, no tax applied
Current Settings:
Express Checkout Shortcut Button= Off
Express Checkout: Require Confirmed Address= No
Express Checkout: Skip Payment Page= No
Express Checkout: Automatic Account Creation=Yes
And I have tax based on shipping address not billing.
So, it transpires that the customer is registering in the shop as normal with a single address and buys the product via paypal.
He should be paying tax as the province in his address is in a defined zone.
However, what I find is that a second address is added during the payment process and used as the shipping address (it’s written slightly differently from that used to register in the shop) which does not get caught by the zone definition and so the order does not have tax applied to it.
Now, this has occurred only three times (in five years). I figured out the problem was the second address but could not get coherent answers out of the two customers as to how they purchased the product: I may as well have asked the cat.
So I altered every sql that inserted into the address_ book to add an extra column detailing the page responsible and a timestamp to get more clues as to how this extra address was being created.
On occasion 3 I find this inserted in address_book
“2014-01-31 11:58:55 paypalwpp 2638” (2638 is the line number of my file=2467 in a vanilla version of paypalwpp.php)
And the order record at my Paypal account is 11:58:59.
The timestamp on the order is
“2014-01-31 11:59:01”
So, looking at the paypalwpp code, it is indeed inserting a new record in the database at order completion.
But, I don’t get the step-by-step details of this particular payment process.
If the insert of the Paypal address is only done at order-completion time, the amount carried to the Paypal page prior to this should have tax applied as usual. It changes dynamically?
Here the new address insert is shown 6 seconds before order completion.
I have now changed Express Checkout: Automatic Account Creation to No, but am unsure if that will have an effect.
Can someone please explain the communication steps of this payment method…or even offer some thoughts on this issue?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...