Fixed a rounding error bug in the Ogone payment plugin.
This commit is contained in:
parent
0f70c99873
commit
13d1657d21
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue