Skip to content

Commit

Permalink
Merge pull request #39 from wirecard/TPWDCEE-959
Browse files Browse the repository at this point in the history
Tpwdcee 959
  • Loading branch information
jpy committed Apr 10, 2018
2 parents 36c1ec8 + 9413c69 commit 2e4243d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Wirecard Checkout Seamless extension for Magento

[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/wirecard/Magento-WCS/master/LICENSE)
[![Magento Community Edition 1.9.3.4](https://img.shields.io/badge/Magento_CE-v1.9.3.4-green.svg)](https://www.magento.com/)
[![Magento Community Edition 1.9.3.8](https://img.shields.io/badge/Magento_CE-v1.9.3.8-green.svg)](https://www.magento.com/)
[![PHP v5.6](https://img.shields.io/badge/php-v5.6-yellow.svg)](http://www.php.net)

Wirecard Checkout Seamless extension for Magento.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class Wirecard_CheckoutSeamless_Helper_Data extends Mage_Payment_Helper_Data
{

protected $_pluginVersion = '4.2.7';
protected $_pluginVersion = '4.2.8';
protected $_pluginName = 'Wirecard/CheckoutSeamless';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract class Wirecard_CheckoutSeamless_Model_Abstract extends Mage_Payment_Mod
protected $_defaultLocale = 'en';

protected $_order;
protected $_pluginVersion = '4.2.7';
protected $_pluginVersion = '4.2.8';
protected $_pluginName = 'Wirecard/CheckoutSeamless';

protected $_formBlockType = 'wirecard_checkoutseamless/form';
Expand Down Expand Up @@ -215,9 +215,13 @@ public function initPayment($storageId, $orderIdent)
$bitem->setUnitGrossAmount(number_format($order->getShippingInclTax(), $precision, '.', ''));
$bitem->setUnitNetAmount(number_format($order->getShippingAmount(), $precision, '.', ''));
$bitem->setUnitTaxAmount(number_format($order->getShippingTaxAmount(), $precision, '.', ''));
$taxRate = 0;
if ($bitem->getUnitNetAmount() > 0) {
$taxRate = (($bitem->getUnitGrossAmount() / $bitem->getUnitNetAmount()) - 1) * 100;
}
$bitem->setUnitTaxRate(
number_format(
(($bitem->getUnitGrossAmount() / $bitem->getUnitNetAmount()) - 1) * 100,
$taxRate,
$precision,
'.',
''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<config>
<modules>
<Wirecard_CheckoutSeamless>
<version>4.2.7</version>
<version>4.2.8</version>
</Wirecard_CheckoutSeamless>
</modules>
<global>
Expand Down

0 comments on commit 2e4243d

Please sign in to comment.