cdetdi Posted December 28, 2018 Share Posted December 28, 2018 (edited) Struggling with PayPal Express checkout dropping the sales tax amount when entering the confirmation page. Background: Not a standard tax installation. We offer customers the ability to prepay duties/taxes/fees for international shipments. For certain shipping methods we require those to be paid, on others they are not required. We've gotten pretty far getting PayPal to play nicely with our hacked setup, but, we're struggling in one instance of express checkout. Tax Amount Shows Properly on PayPal Screens. When switching shipping method tax calculation behaves as intended. When we get back to the order confirmation stage on our shop there is no tax on the order confirmation. Looking at the session information, however, [TAXAMT] and [PAYMENTREQUEST_0_TAXAMT] are being passed correctly. I'm assuming that the order total module check on my site is kicking out tax because of some condition that got unset when going to PayPal and coming back. Questions: Does the OSC PayPal app pay attention to the tax variables passed back from PayPal - or - does the site do its own tax/order total calculations? If it DOES use the passed variables - where are those processed back to the shop so they appear in the order confirmation? I've done a few hours of grep trying to follow stuff around the PayPal app, but I'm not getting very far. Any help is appreciated - I know that my installation and request are bespoke, any insight into how this data is handled can help me get to the answer. Edited December 28, 2018 by cdetdi Quote Two forks diverged in a git, and I— I took the fork traveled by burt, And that has made all the difference. Link to comment Share on other sites More sharing options...
cdetdi Posted December 28, 2018 Author Share Posted December 28, 2018 (edited) Fixed for now - I added a function in general that looks to see if the PAYMENTREQUEST_0_TAXAMT is in the Paypal array which then turns on the tax rate I need. The fact that this works suggests that it was the shop that calculated the rate by itself (disregarding the PayPal return) and the shop was dropping the tax rate. Edited December 28, 2018 by cdetdi John W 1 Quote Two forks diverged in a git, and I— I took the fork traveled by burt, And that has made all the difference. Link to comment Share on other sites More sharing options...
jawadakr Posted February 4, 2020 Share Posted February 4, 2020 Can you share the solution with me. It seems that I am almost facing a similar problem with os commerce CE phoenix version. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.