ITransact requires that money amounts in XML have 2 decimal places.
This commit is contained in:
parent
57b1e47f30
commit
4b3f81e3a0
2 changed files with 7 additions and 7 deletions
|
|
@ -10,8 +10,8 @@
|
|||
- added Google Maps asset
|
||||
- added a way for authors to prevent debugging output on page requests
|
||||
- added --noprompt option to testEnvironment.pl to automatically install modules
|
||||
- added FilePump, a way to reduce Yslow scores by minimizing JS, CSS and the
|
||||
number of files transferred.
|
||||
- added FilePump, a way to reduce Yslow scores by minimizing JS, CSS and the number of files transferred.
|
||||
- fixed #10394: CC Purchases Fail When Variants Contain Trailing Zero(s)
|
||||
|
||||
7.7.6
|
||||
- Added mobile style template. If enabled in settings, will serve alternate style templates
|
||||
|
|
|
|||
|
|
@ -97,13 +97,13 @@ sub _generatePaymentRequestXML {
|
|||
$recurringData->{ RecurRecipe } = $self->_resolveRecurRecipe( $sku->getRecurInterval );
|
||||
$recurringData->{ RecurReps } = 99999;
|
||||
$recurringData->{ RecurTotal } =
|
||||
$item->get('price') + $transaction->get('taxes') + $transaction->get('shippingPrice');
|
||||
sprintf("%.2f",$item->get('price') + $transaction->get('taxes') + $transaction->get('shippingPrice'));
|
||||
$recurringData->{ RecurDesc } = $item->get('configuredTitle');
|
||||
}
|
||||
# else {
|
||||
push @{ $orderItems->{ Item } }, {
|
||||
Description => $item->get('configuredTitle'),
|
||||
Cost => $item->get('price'),
|
||||
Cost => sprintf("%.2f", $item->get('price')),
|
||||
Qty => $item->get('quantity'),
|
||||
}
|
||||
# }
|
||||
|
|
@ -114,21 +114,21 @@ sub _generatePaymentRequestXML {
|
|||
if ( $transaction->get('taxes') > 0 ) {
|
||||
push @{ $orderItems->{ Item } }, {
|
||||
Description => $i18n->get('taxes'),
|
||||
Cost => $transaction->get('taxes'),
|
||||
Cost => sprintf("%.2f",$transaction->get('taxes')),
|
||||
Qty => 1,
|
||||
};
|
||||
}
|
||||
if ($transaction->get('shippingPrice') > 0) {
|
||||
push @{ $orderItems->{ Item } }, {
|
||||
Description => $i18n->get('shipping'),
|
||||
Cost => $transaction->get('shippingPrice'),
|
||||
Cost => sprintf("%.2f",$transaction->get('shippingPrice')),
|
||||
Qty => 1,
|
||||
};
|
||||
}
|
||||
if ($transaction->get('shopCreditDeduction') < 0) {
|
||||
push @{ $orderItems->{ Item } }, {
|
||||
Description => $i18n->get('in shop credit'),
|
||||
Cost => $transaction->get('shopCreditDeduction'),
|
||||
Cost => sprintf("%.2f",$transaction->get('shopCreditDeduction')),
|
||||
Qty => 1,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue