[Skip to main content](#vessel-content)

#   Paypal xfer of Shipping and Handling

##

- **[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")**
- [![wayneft's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33908-wayneft "View wayneft's Profile") Topic Author
- [ Offline](/forum/user/33908-wayneft)

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 9 months ago [\#186145](#186145) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#186145 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")* was created by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.15
-- Browser(s) name and version -- : Chrome

Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.

This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.

Any help on this issue would be greatly appreciated.

- [ ![PayPalSH.png](/forum/attachment/21614) ](/forum/attachment/21614 "PayPalSH.png") [ ](/forum/attachment/21614?download=1 "PayPalSH.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 9 months ago [\#186151](#186151) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#186151 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")*

Hi,

We do that because PayPal doesn't support taxes on the shipping fees and HikaShop does. So we have to put the shipping fees as a product line, otherwise, we wouldn't be able to add the tax on the shipping and the total would be wrong and it wouldn't work.

What you can do is change the code: Code:

$vars['item_name_' . $i] = JText::_('HIKASHOP_SHIPPING'); $vars['amount_' . $i] = round($order-&gt;order_shipping_price - @$order-&gt;order_shipping_tax, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $tax += round($order-&gt;order_shipping_tax, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $vars['quantity_' . $i] = 1; $i++;

to: Code:

$vars['shipping'] = round($order-&gt;order_shipping_price, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']);

in the file plugins/hikashoppayment/paypal/paypal.php
However, that means that if you have taxes on shipping, it will probably not work properly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")**
- [![wayneft's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33908-wayneft "View wayneft's Profile") Topic Author
- [ Offline](/forum/user/33908-wayneft)

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 8 months ago [\#189104](#189104) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  Replied by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")* on topic *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#189104 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")*

So I finally got around to testing the code but it does not work. It does not send any shipping information to Paypal. Even on the Paypal log in screen, there is no shipping and handling total.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 8 months ago [\#189105](#189105) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#189105 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")*

Hi,

I don't see why this code change wouldn't work. I did it per PayPal's documentation on the available variables for the redirection form:
[ developer.paypal.com/docs/classic/paypal...ndard\_htmlvariables/](https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")**
- [![wayneft's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33908-wayneft "View wayneft's Profile") Topic Author
- [ Offline](/forum/user/33908-wayneft)

Less More

- Posts: 25
- Thank you received: 1
-
-

11 years 8 months ago [\#189954](#189954) by [wayneft](/forum/user/33908-wayneft "View wayneft's Profile")  Replied by *[wayneft](/forum/user/33908-wayneft "View wayneft's Profile")* on topic *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#189954 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")*

So I played around with this some more and found the problem. You ave to use the code: Code:

$vars['handling_cart'] = round($order-&gt;order_shipping_price, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']);

because "shipping' only applies to a single item whereas 'handling_cart' applies to the whole cart.

You should really consider adding this to the Paypal plugin. You mentioned earlier that the reason you don't do it is because Paypal does support tax on shipping fees, however that is not the case. When you set up your tax profile in Paypal there is a field that asks you if you want to tax shipping and handling so it should work fine. Thanks for the help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 8 months ago [\#189963](#189963) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal xfer of Shipping and Handling](/forum/29-payment-methods/874172-paypal-xfer-of-shipping-and-handling#189963 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Do any of the Paypal plugins correctly transfer the Shipping and Handling field to Paypal? Currently what I see is the shipping option (usps) and amount transferred to Paypal as a separate line item in the shopping cart. As you can see in the picture the Shipping and/or Handling field(s) are blank.  This really wreaks havoc when I export the order from Paypal to ShipStation on international orders. The reason being is the shipping line item shows up on the customs form as merchandise because it was not originally in the SHipping field in Paypal.  Any help on this issue would be greatly appreciated.")*

Thank you for your feedback with the "handling_cart" parameter.

You shouldn't do add taxes for shipping in your PayPal acocunt. If you do that, the total of the order will be different between HikaShop and PayPal and HikaShop will refuse the payment notification from PayPal. That's a necessary check done on the payment notification in order to avoid payment fraud and also to keep consistency between what you have on file on your website for the invoice and what the user paid on the payment gateway.
Believe me, we had a good reason to do it that way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQxNzItcGF5cGFsLXhmZXItb2Ytc2hpcHBpbmctYW5kLWhhbmRsaW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.205 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
