Commit 749ef4ea authored by Sigrid Suski's avatar Sigrid Suski
Browse files

(#) Wrong amount for Paypal payment if tax is set to 0 (Issue #62) / final version 1.4.4

parent e738924f
......@@ -86,7 +86,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
(#) Missing part of JavaScript translations in backend (Issue #56)
(#) {payment.methods.html} placeholder doesn't generate correct HTML output for Paypal payment method
(#) Shown number of characters in textarea with HTML code corrected (if limitation is used)
(#) Wrong amount for Paypal payment if tax is set to 0 (Issue #62)
### 1.4.3 (19 October 2017)
......
......@@ -74,7 +74,14 @@ class SPPPaypal extends SPPlugin
$cfg = SPLoader::loadIniFile( 'etc.paypal' );
$rp = $cfg[ 'general' ][ 'replace' ];
$to = ( $cfg[ 'general' ][ 'replace' ] == ',' ) ? '.' : ',';
$amount = str_replace( $rp, $to, $payment[ 'summary' ][ 'sum_brutto' ] );
$vat = Sobi::Cfg( 'payments.vat', 0 );
if ($vat) {
$amount = str_replace( $rp, $to, $payment[ 'summary' ][ 'sum_brutto' ] );
}
else {
$amount = str_replace( $rp, $to, $payment[ 'summary' ][ 'sum_amount' ] );
}
//compatibility for existing sites
if ( array_key_exists( 'ppcancel', $data ) ) {
......
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade" overwrite="true">
<name>SobiPro</name>
<creationDate>17 January 2018</creationDate>
<creationDate>29 January 2018</creationDate>
<author>Sigsiu.NET GmbH</author>
<authorEmail>sobi[at]sigsiu.net</authorEmail>
<authorUrl>https://www.Sigsiu.NET</authorUrl>
<copyright>Copyright (C) 2006-2018 Sigsiu.NET GmbH</copyright>
<license>GNU General Public License v3</license>
<version>1.4.4.K</version>
<version>1.4.4</version>
<codename>Owl</codename>
<description>SobiPro directory component for Joomla!</description>
<version_number>1.4.4</version_number>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment