Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Express Checkout with wrong carriage and VAT


doc_uk

Recommended Posts

Hi

 

I have been trying to trace this issue for several days now, and am tearing my hair out.

 

Using Express Checkout from the shopping_cart page, the information passed to Paypal is completely wrong for VAT and carriage - no VAT is on the order, and the carriage options all selected are international ones, no local (UK) ones.

 

If I log into my account on the shop then use Express Checkout, all the right values are there; but that somewhat defeats the object of Express Checkout!!

 

Loggin what is being pushed up to Paypal, there is no VAT/tax on the products, whereas in reality it should be 20%.

 

I have been back-tracing thru the code, and noticed that when I get tep_get_tax_description("2",Null,Null) called then this is when the wrong shipping (so assume wrong country) and tax are being generated - I reckon the call should be either tep_get_tax_description("2",-1,-1) or tep_get_tax_description("2","222","237")

 

I am using the Paypal Express Checkout as supplied with OSC 2.3.3

 

Any ideas what I am missing before I lose what little hair I have left?

 

Thanks,

 

Doc

Link to comment
Share on other sites

  • 3 months later...

Had the same problem, response from paypal

 

Hello Michael,

 

Thank you for your email.

 

I have reviewed the issue with all screenshots.

 

I do appreciate the detailed explanation too.

 

As I see, when you are going through a standard checkout there is an address provided by a user on your site and the and shipping module generates amounts that has to be charged. Next all this information suppose to be going to PayPal checkout page. However, in your instance there VAT and Shipping fees are not passed on at all.

 

 

You are getting VAT and Shipping correctly after logging because of a call-back function which is referring back to the OScommerce shipping module and collect missing info. This is a common procedure for express checkout shortcut.

The same thing happens when a user selects the checkout shortcut. image003.gif

 

 

However at this option no addresses is selected and no VAT, shipping fees are generated by the OScommerce shipping module. At this point PayPal is calling back to OScommerce with the address chosen on PayPal account and asking for the shipping price and if does not receive the value from the shipping module, it places some fixed value.

 

 

From examples blow I see that the TAX and Shipping are calculated differently too.

 

 

Referring to these problem I can assume that there is an issue with a shipping module or PayPal related modules on OScommerce.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...