paytrail / paytrail-for-woocommerce

Paytrail payment service for WooCommerce
MIT License
4 stars 10 forks source link

Decimal values for Tax Rate are not supported #159

Closed chrisgan closed 3 months ago

chrisgan commented 5 months ago

Describe the bug

If the value of a given tax rate is a decimal (non whole) number, e.g. 25.5 then the payment method does not support it.

Steps to Reproduce

Set Tax Rate to 25.5 and place an order using the payment method

Expected behaviour

The Tax Rate can be a decimal value, checkout can be completed, and the tax rate is correctly used as a decimal value

Actual behaviour

The Tax Rate can not be a decimal value as it is assumed it is an integer value.

Additional context

Requires fix to the SDK to support this change. https://github.com/paytrail/paytrail-php-sdk/issues/94

loueranta-paytrail commented 3 months ago

Released in 2.1.0