Having a bit of trouble with Qty in the Square checkout form when using the checkout api order checkout… It seems the price is correct though. Any thoughts?
Qty always seems to round down - 0.25 becomes 0, 1.75 becomes 1, etc.
var c = new MeasurementUnitCustom.Builder("Yards", "yd")
.Name("Yards")
.Abbreviation("yd")
.Build();
var measurementUnit = new MeasurementUnit.Builder()
.CustomUnit(c)
//.LengthUnit("IMPERIAL_YARD")
.Build();
var quantityUnit = new OrderQuantityUnit.Builder()
.MeasurementUnit(measurementUnit)
.Precision(3)
.Build();
var orderLineItem = new OrderLineItem.Builder("0.25")
.QuantityUnit(quantityUnit)
.Uid("xxx")
.Name("Aerial in Black")
.BasePriceMoney(basePriceMoney)
.Build();