Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: PayPal system contains an incorrectly formatted item amount V1.1.8  (Read 9456 times)

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
I have read all the other posts on this.  This is using a credit from a customers account and paypal.  They have a total over the credit amount.  Everything looks like 2 decimal places and everything is in US currency.  I have checked the items he is buying and they all only have 2 decimal places. 

I can't figure out why paypal is throwing the error...

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #1 on: January 31, 2014, 06:09:25 PM »
I will do a test sandbox order to get the value it is sending over to paypal from the back end in a little while...with a customer credit and some product.  Perhaps some equation is adding an extra number to the price or something. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #2 on: February 01, 2014, 11:16:26 AM »
Ok it is defiantly the credit system.  I built out the same cart as my customer and tried it with the credit and got the paypal error.  Without the credit it worked.  My GUESS based on what google is saying is that it is an hidden input type being send to paypal.  A guess based on what is in the code for the submit cart to paypal page is this line....


<input type="hidden" name="amount_8" value="-53.00"/>

I think it doesn't like the negative in front of the 53.00...

My whole business model is based on the idea of giving customers credits for trade items, what can I do to expedite this and get help?   Please PM me with what I need to do.  Thank you. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #3 on: February 01, 2014, 11:25:34 AM »
Issue has been submitted via defect form with images of what I think is relevant information. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #4 on: February 01, 2014, 11:30:02 AM »
Here is a post I found for a different cart system, which sort of sounds like what is happening here but not exactly based on what I can see.


If I set a negative (like -$5) discount, it works well. However, when I set a normal discount number (like $5), it becomes $-5 at the final step and causes the issue. It seems to be a bug to me.


http://forum.opencart.com/viewtopic.php?f=161&t=33915&start=120

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #5 on: February 01, 2014, 11:33:46 AM »
Here is the google search I used, there are a lot of different cart systems that have this error with the negative number...Sadly I can find issues, but I do not write code, so I can not look at what we are sending vs what paypal is getting and do more than what I have done.  I hope I have helped you.   


Google search:  PayPal system contains an incorrectly formatted item amount negative

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #6 on: February 02, 2014, 07:11:35 AM »
mm... what exactly paypal extension do you use? standart, pro or express?
What about variant with customer balance? i mean.. Did you try to use credit for your customers via customer's balance?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #7 on: February 02, 2014, 12:47:00 PM »
It was paypal standard. 

I am not quite sure of your second question. The credit is the from the customers balance.  That is the value that is the -53.00  It is coming from the customer balance. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #8 on: February 04, 2014, 10:04:57 AM »
Is there anything new on this?  If this can not be fixed I have to switch carts, because this is what my whole business model is based on. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #9 on: February 19, 2014, 11:01:47 AM »
New bump.

I tried added 2checkout to my cart to use that for credits, and they denied me because they said I am not allowed to sell used items.  So I can not even take another payment option than paypal.  Is there anything I can do to expedite this or something.  I really need help with this.  I can work with someone to help or whatever.  Please message me. 

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: PayPal system contains an incorrectly formatted item amount V1.1.8
« Reply #10 on: August 04, 2014, 11:57:04 AM »
solution in attachment. just replace file public_html/extensions/default_pp_standart/storefront/controller/responses/extension/default_pp_standart.php
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod