This is how I'm setting price of line-items while creating the order slip.
if(productsPojo.getOrder_total()==null){
lineItem.setPrice((long)0);
}else {
double price = Double.parseDouble(productsPojo.getOrder_price()) * 100;
lineItem.setPrice((long)price);
}
lv_items.add(lineItem);