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

ShoresOfNowhere
New Community Member

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?

Login to Me Too
1 REPLY 1

ShoresOfNowhere
New Community Member

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

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.