diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index aa5e50fde..ae57d30b8 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -10,6 +10,9 @@ - fixed per-field prices in ThingyRecord - fixed a bug where VersionTag->get would return an unsafe copy of its state ( Martin Kamerbeek / Oqapi ) + - fixed a bug in the Ogone pay driver where for certain combinations of tax + rates and in store credit a rounding error would prevent checkout at + Ogone. ( Martin Kamerbeek / Oqapi ) 7.7.14 - fixed #10606: shelf selector diff --git a/lib/WebGUI/Shop/PayDriver/Ogone.pm b/lib/WebGUI/Shop/PayDriver/Ogone.pm index d348023c9..ec2947df0 100644 --- a/lib/WebGUI/Shop/PayDriver/Ogone.pm +++ b/lib/WebGUI/Shop/PayDriver/Ogone.pm @@ -188,7 +188,7 @@ sub ogoneCheckoutButton { $self->{ _ogoneTransaction } = "done" ; # Ogone needs the transaction amount in cents - my $amount = $transaction->get('amount') * 100; + my $amount = sprintf( "%.2f", $transaction->get('amount') ) * 100; $amount =~ s/[^\d]//g; # Remove any character from amount except digits. my $orderId = $transaction->getId;