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

#   Paypal Payment Plugin &amp; Userpoints Compatibility

##

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

Less More

- Posts: 265
- Thank you received: 1
-
-

11 years 4 months ago [\#206828](#206828) by [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")  *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#206828 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")* was created by *[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

Hello,

Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.

For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.

If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.

It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?

Many thanks,
Hal

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3Nzg4MS1wYXlwYWwtcGF5bWVudC1wbHVnaW4tdXNlcnBvaW50cy1jb21wYXRpYmlsaXR5P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

11 years 4 months ago [\#206847](#206847) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#206847 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")*

Hi,

The points system uses the "additional data" system of HikaShop which allows a plugin to insert extra lines to the cart/order between the subtotal and the total.
PayPal doesn't offer the possibility to add such extra lines.

What we can try is to add them as item rows.
Try to add the code: Code:

foreach($order-&gt;cart-&gt;additional as $product) { if(empty($product-&gt;price_value)) continue; $vars['item_name_' . $i] = substr(strip_tags($product-&gt;name), 0, 127); $vars['item_number_' . $i] = 'order additional'; $vars['amount_'.$i] = round($product-&gt;price_value, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']); $vars['quantity_' . $i] = 1; $i++; }

before the line: Code:

if(!empty($order-&gt;order_shipping_price) &amp;&amp; bccomp($order-&gt;order_shipping_price, 0, 5)) {

in the file plugins/hikashoppayment/paypal/paypal.php and test it.
Let us know how it goes. If it works, we could include that by default in HikaShop.

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

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

Less More

- Posts: 265
- Thank you received: 1
-
-

11 years 4 months ago [\#206918](#206918) by [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")  Replied by *[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")* on topic *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#206918 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")*

Hello,

I tried, but unfortunately I didn't have any success.

However, I notice that when I use a coupon that the discount is applied no problem. Is there any way to include it on this line? I have attached a screenshot.

Many thanks,
Hal

- [ ![Screen&#95;Shot&#95;2015-07-01&#95;at&#95;12&#95;17&#95;14.png](/forum/attachment/25306) ](/forum/attachment/25306 "...t&#95;12&#95;17&#95;14.png") [ ](/forum/attachment/25306?download=1 "...t&#95;12&#95;17&#95;14.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3Nzg4MS1wYXlwYWwtcGF5bWVudC1wbHVnaW4tdXNlcnBvaW50cy1jb21wYXRpYmlsaXR5P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

11 years 4 months ago [\#206984](#206984) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#206984 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")*

Hi,

Please provide a FTP access to the website, a user account with points, the procedure to reproduce the issue and a link to this thread via our contact form so that we can debug the issue.
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 265
- Thank you received: 1
-
-

11 years 4 months ago [\#207071](#207071) by [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")  Replied by *[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")* on topic *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#207071 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")*

Thanks for your help.

I've set that all up, I used the subject box for a link to this thread.

Thanks again,
Hal

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3Nzg4MS1wYXlwYWwtcGF5bWVudC1wbHVnaW4tdXNlcnBvaW50cy1jb21wYXRpYmlsaXR5P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

11 years 4 months ago [\#207350](#207350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal Payment Plugin &amp; Userpoints Compatibility](/forum/27-checkout/877881-paypal-payment-plugin-userpoints-compatibility#207350 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  Hello,  Within the specific configuration of the 'Paypal Payment Plugin', If I set 'Send order details' to 'Yes'. It sends the full price to Paypal, rather than a discount price achieved with loyalty points.  For example, I have 50 points worth £5, the product is valued at £25. At the front-end of the website hikashop recognises the discount available and takes off the £5 to give a sub-total of £20. Then continue to Paypal and it's back to £25.  If I set 'Send order details' to no then it works and gives the appropriate discount, but then I have no order details at Paypal.  It's important for me to be able to push these details to Paypal as I know that it has recently caused a bit of confusion for my customers. Could you please help?  Many thanks, Hal")*

Hi,

As I had expected that code cannot work as you can't give to paypal products with negative prices.
I've made an additional patch to pass the point discount as a normal coupon to PayPal.
It seems to work fine now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3Nzg4MS1wYXlwYWwtcGF5bWVudC1wbHVnaW4tdXNlcnBvaW50cy1jb21wYXRpYmlsaXR5P3RtcGw9bWFya2Rvd24=) 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.071 seconds

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