View Single Post
  #30  
Old 01-27-2011, 01:32 PM
 
monokuro monokuro is offline
 

Advanced Member
  
Join Date: Jan 2010
Posts: 31
 

Default Re: PayPal is launching an advanced payment interface.

Quote:
Originally Posted by qualiteam
Its just a quick solution, thus I'm afraid no.

PayPal expects individual prices for items, but allows only 2 digits after the decimal point. Thus having quantity passed implies devision of the price by product quantity to pass to PayPal. But due to that limit the total could became wrong e.g. for 2 products $15.77/2 = 7.885 but only 7.88 can be passed as a price for the item...
The way around this would be to put the items in the cart at their normal price, then use the "discount_amount_x" field to bring it down to the correct price.

(As I'm assuming this problem would only occur when you had done a buy 1 get one for X offer - otherwise there would be no rounding issue)
__________________
X-Cart Pro 4.3.0
Reply With Quote