Skip to content

Incorrect precision for numeric values on order lines #9

@gulvklud

Description

@gulvklud

Hi,

According to the Merchant API Documentation, the various numeric properties of the order lines should be of decimal precision, but in this SDK they are only double precision?

This causes issues with calculated values like for instance unitPrice because lets say a unit price of 0.15 with a quantity of 2 would give a price of 0.075, but with only double precision that would be rounded to 0.08 which in turn will cause issues with Klarna who expects very precise numeric values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions