Closed (fixed)
Project:
Commerce Payment: Paytrail
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2024 at 21:58 UTC
Updated:
4 Dec 2024 at 07:39 UTC
Jump to comment: Most recent
Comments
Comment #2
tvalimaa commentedPaytrail works fine in testing mode with VAT% set to 25.5 on commerce settings
Comment #3
jgullstr commentedCurrently, the payments pass, but get registered remotely with a truncated VAT rate. "setVatPercentage"-calls in the module cast VAT percentages to integer values, which removes the fractional part of the VAT rate, eg 25.5 turns into 25.
The API library probably needs to be regenerated before decimal values can be used, I have created an issue for that here.
Comment #6
tuutti commentedThanks! This should be fixed in 3.1.0 release.
The updated OpenAPI spec introduced some BC breaks and I had to bump the API library version. You might have to run composer update with -W flag (
composer update drupal/commerce_paytrail -W) to get the updated API library.Comment #7
tuutti commented