OrderCheckout Problem

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();

What’s the Square generated order_id for this order? :slightly_smiling_face:

I created a new one with a quantity of 0.25, to demonstrate the qty rounding down a bit better:

orderid: G4d4c0shgzSyp4bxrcC0HFWEd46YY
order link: Stitches LLC

This is still very much an issue for me - any follow-up thoughts on this?

Thanks for bringing this to our attention. I’ve shared this with the team. :slightly_smiling_face: