Is your feature request related to a problem? Please describe.
I'm frustrated when I need to process transactions for items that are sold in fractional quantities (e.g., 1.5 kg, 0.75 meters, etc.) using the Paytrail API. Currently, the API only supports integer values for item units, which means I have to work around this limitation by adjusting item quantities or prices, leading to potential inaccuracies and a cumbersome process.
Describe the solution you'd like
I would like the Paytrail API to support numeric inputs for item units instead of limiting them to integer values. This change would allow for more precise representation of quantities, especially for businesses that sell goods in fractional units (like weight, length, or volume). This would eliminate the need for workarounds and improve the accuracy and usability of the API for a broader range of transactions.
Describe alternatives you've considered
As a workaround, I've considered adjusting the item prices to reflect fractional units as whole numbers (e.g., treating 0.5 kg as 1 unit and halving the price accordingly). However, this method is not ideal as it complicates transaction records and can lead to confusion in both reporting and customer communication.
Additional context
Supporting fractional quantities would align the Paytrail API with other major payment processing systems that already allow for numeric values in item units. This change would be particularly beneficial for industries like retail, construction, or food services, where items are frequently sold in non-integer amounts.
Is your feature request related to a problem? Please describe.
I'm frustrated when I need to process transactions for items that are sold in fractional quantities (e.g., 1.5 kg, 0.75 meters, etc.) using the Paytrail API. Currently, the API only supports integer values for item units, which means I have to work around this limitation by adjusting item quantities or prices, leading to potential inaccuracies and a cumbersome process.
Describe the solution you'd like
I would like the Paytrail API to support numeric inputs for item units instead of limiting them to integer values. This change would allow for more precise representation of quantities, especially for businesses that sell goods in fractional units (like weight, length, or volume). This would eliminate the need for workarounds and improve the accuracy and usability of the API for a broader range of transactions.
Describe alternatives you've considered
As a workaround, I've considered adjusting the item prices to reflect fractional units as whole numbers (e.g., treating 0.5 kg as 1 unit and halving the price accordingly). However, this method is not ideal as it complicates transaction records and can lead to confusion in both reporting and customer communication.
Additional context
Supporting fractional quantities would align the Paytrail API with other major payment processing systems that already allow for numeric values in item units. This change would be particularly beneficial for industries like retail, construction, or food services, where items are frequently sold in non-integer amounts.