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

#   PayPal Advanced charges $0.00

##

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

Less More

- Posts: 39
- Thank you received: 3
-
-

9 years 7 months ago [\#267996](#267996) by [lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")  *[PayPal Advanced charges $0.00](/forum/29-payment-methods/889932-paypal-advanced-charges-0-00#267996 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5  Hi, I am setting up Hikashop based online store and have strange problem with PayPal Advanced plugin. It transfers customer name and address to the payment gateway, but the amount is always $0.00 (see attached image). I tried to activate debug, but the report file is not created. Payment log file location is set to media/com&#95;hikashop/upload/safe/logs/report&#95;526840422.log Both safe and logs folders are writable (777). I am also using regular PayPal plugin for PayPal Express method and it works correctly.  Has anyone experienced this behavior ? What could be the problem ?  Thanks. Best regards, B.G.")* was created by *[lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5

Hi,
I am setting up Hikashop based online store and have strange problem with PayPal Advanced plugin. It transfers customer name and address to the payment gateway, but the amount is always $0.00 (see attached image). I tried to activate debug, but the report file is not created. Payment log file location is set to **media/com\_hikashop/upload/safe/logs/report\_526840422.log** Both **safe** and **logs** folders are writable (777).
I am also using regular PayPal plugin for PayPal Express method and it works correctly.

Has anyone experienced this behavior ? What could be the problem ?

Thanks.
Best regards,
B.G.

- [ ![Chooseawaytopay.png](/forum/attachment/37786) ](/forum/attachment/37786 "...eawaytopay.png") [ ](/forum/attachment/37786?download=1 "...eawaytopay.png")
- [ ![paypaladvanced.png](/forum/attachment/37787) ](/forum/attachment/37787 "...aladvanced.png") [ ](/forum/attachment/37787?download=1 "...aladvanced.png")

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

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

Less More

- Posts: 39
- Thank you received: 3
-
-

9 years 7 months ago -  9 years 7 months ago [\#267997](#267997) by [lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")  Replied by *[lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")* on topic *[PayPal Advanced charges $0.00](/forum/29-payment-methods/889932-paypal-advanced-charges-0-00#267997 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5  Hi, I am setting up Hikashop based online store and have strange problem with PayPal Advanced plugin. It transfers customer name and address to the payment gateway, but the amount is always $0.00 (see attached image). I tried to activate debug, but the report file is not created. Payment log file location is set to media/com&#95;hikashop/upload/safe/logs/report&#95;526840422.log Both safe and logs folders are writable (777). I am also using regular PayPal plugin for PayPal Express method and it works correctly.  Has anyone experienced this behavior ? What could be the problem ?  Thanks. Best regards, B.G.")*

Since debugger does not work, I temporarily added **file\_put\_contents** command to **paypaladvanced.php** file and saved the value of **$postdata** into a log file. I found that AMT in POST message is 0, that's why PayPal shows order amount 0.
Further debugging revealed that the value of **$order-&gt;cart-&gt;order\_full\_price** is empty string, which is the reason the following line returns 0
**'AMT' =&gt; @ round($order-&gt;cart-&gt;order\_full\_price, (int)$this-&gt;currency-&gt;currency\_locale),**
The value of **(int)$this-&gt;currency-&gt;currency\_locale)** in my case is **2**.

Now the question is why **$order-&gt;cart-&gt;order\_full\_price** is empty?

Thanks.

Last edit: 9 years 7 months ago by [lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile").

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

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

Less More

- Posts: 39
- Thank you received: 3
-
-

9 years 7 months ago [\#268020](#268020) by [lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")  Replied by *[lmcbmai](/forum/user/49603-lmcbmai "View lmcbmai's Profile")* on topic *[PayPal Advanced charges $0.00](/forum/29-payment-methods/889932-paypal-advanced-charges-0-00#268020 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5  Hi, I am setting up Hikashop based online store and have strange problem with PayPal Advanced plugin. It transfers customer name and address to the payment gateway, but the amount is always $0.00 (see attached image). I tried to activate debug, but the report file is not created. Payment log file location is set to media/com&#95;hikashop/upload/safe/logs/report&#95;526840422.log Both safe and logs folders are writable (777). I am also using regular PayPal plugin for PayPal Express method and it works correctly.  Has anyone experienced this behavior ? What could be the problem ?  Thanks. Best regards, B.G.")*

Found and fixed the bug. Instead of
**'AMT' =&gt; @ round($order-&gt;cart-&gt;order\_full\_price, (int)$this-&gt;currency-&gt;currency\_locale)**
it should be
**'AMT' =&gt; @ round($order-&gt;order\_full\_price, (int)$this-&gt;currency-&gt;currency\_locale)**

It is working correctly now ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk5MzItcGF5cGFsLWFkdmFuY2VkLWNoYXJnZXMtMC0wMD90bXBsPW1hcmtkb3du) 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: 86593
- Thank you received: 14334
-
-

9 years 7 months ago [\#268032](#268032) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Advanced charges $0.00](/forum/29-payment-methods/889932-paypal-advanced-charges-0-00#268032 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5  Hi, I am setting up Hikashop based online store and have strange problem with PayPal Advanced plugin. It transfers customer name and address to the payment gateway, but the amount is always $0.00 (see attached image). I tried to activate debug, but the report file is not created. Payment log file location is set to media/com&#95;hikashop/upload/safe/logs/report&#95;526840422.log Both safe and logs folders are writable (777). I am also using regular PayPal plugin for PayPal Express method and it works correctly.  Has anyone experienced this behavior ? What could be the problem ?  Thanks. Best regards, B.G.")*

Hi,

Thank you for your feedback.

The problem follows HikaShop 3. The variable was provided by HikaShop 2.x but PayPal Advanced was the only payment plugin to use it. So no other payment plugin was affected, and it was only affected with the "checkout legacy" setting turned off.
I've added the patch on our end.

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

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