cancel
Showing results for 
Search instead for 
Did you mean: 

Using the php merchant SDK, ItemWeight value seems to be ignored by PayPal

New Community Member

Using the php merchant SDK, ItemWeight value seems to be ignored by PayPal

Hi!

 

I'm integrating Express Checkout in my web site, and I've successfully managed to get all the process right, so transactions are working ok.

 

What happens is that since the goods the site is selling are sold not only by pieces but also by weight (something like 2.34 Kgs of fresh meat) , I've made it so that the item quantity gets set to 1 and the item price gets adjusted to the correct amount for the weight requested:

 

1.2 Kgs of meat at 20 euros/Kg, I turn this into 1 piece of meat at 24 euros/piece.

 

,since it seemed that PP would not accept floating point quantities.

 

Nonetheless, it would be nice to show the weight of the item in the PP Checkout page, so I used :

 

$thiswgt=new MeasureType("Kg",number_format($weightinkg,2,".",","));
$itemDetails->ItemWeight= $thiswgt;

 

To pass the weight to PP, but it gets ignored...

 

Anyone can help me?

Tags (1)
1 REPLY 1
New Community Member

Re: Using the php merchant SDK, ItemWeight value seems to be ignored by PayPal

(Sorry if i posted in the wrong board, please do move my post in the correct one! 🙂 Sorry!)