ZerebroInternet_Barzahlen - Version 1.1.2

Version Notes

In this version the following things were already tested successfully on 1.4.2.0,1.5.0.1,1.5.1.0,1.6.0.0,1.6.1.0,1.6.2.0,1.7.0.0,1.7.0.1,1.7.0.2

Download this release

Release Info

Developer Magento Core Team
Extension ZerebroInternet_Barzahlen
Version 1.1.2
Comparing to
See all releases


Code changes from version 1.1.1 to 1.1.2

app/code/community/ZerebroInternet/Barzahlen/Model/Api/Abstract.php CHANGED
@@ -82,5 +82,20 @@ abstract class ZerebroInternet_Barzahlen_Model_Api_Abstract {
82
  }
83
  }
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  }
86
  ?>
82
  }
83
  }
84
  }
85
+
86
+ /**
87
+ * Converts ISO-8859-1 strings to UTF-8 if necessary.
88
+ *
89
+ * @param string $string text which is to check
90
+ * @return string with utf-8 encoding
91
+ */
92
+ public function isoConvert($string) {
93
+
94
+ if(!preg_match('/\S/u', $string)) {
95
+ $string = utf8_encode($string);
96
+ }
97
+
98
+ return $string;
99
+ }
100
  }
101
  ?>
app/code/community/ZerebroInternet/Barzahlen/Model/Api/Request/Payment.php CHANGED
@@ -43,9 +43,9 @@ class ZerebroInternet_Barzahlen_Model_Api_Request_Payment extends ZerebroInterne
43
  public function __construct(array $arguments) {
44
 
45
  $this->_customerEmail = $arguments['customerEmail'];
46
- $this->_customerStreetNr = $arguments['customerStreetNr'];
47
  $this->_customerZipcode = $arguments['customerZipcode'];
48
- $this->_customerCity = $arguments['customerCity'];
49
  $this->_customerCountry = $arguments['customerCountry'];
50
  $this->_amount = $arguments['amount'];
51
  $this->_currency = $arguments['currency'];
43
  public function __construct(array $arguments) {
44
 
45
  $this->_customerEmail = $arguments['customerEmail'];
46
+ $this->_customerStreetNr = $this->isoConvert($arguments['customerStreetNr']);
47
  $this->_customerZipcode = $arguments['customerZipcode'];
48
+ $this->_customerCity = $this->isoConvert($arguments['customerCity']);
49
  $this->_customerCountry = $arguments['customerCountry'];
50
  $this->_amount = $arguments['amount'];
51
  $this->_currency = $arguments['currency'];
app/code/community/ZerebroInternet/Barzahlen/etc/config.xml CHANGED
@@ -25,7 +25,7 @@
25
 
26
  <modules>
27
  <ZerebroInternet_Barzahlen>
28
- <version>1.1.1</version>
29
  </ZerebroInternet_Barzahlen>
30
  </modules>
31
 
25
 
26
  <modules>
27
  <ZerebroInternet_Barzahlen>
28
+ <version>1.1.2</version>
29
  </ZerebroInternet_Barzahlen>
30
  </modules>
31
 
app/design/frontend/base/default/layout/barzahlen.xml CHANGED
@@ -21,7 +21,7 @@
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL-3.0)
22
  */
23
  -->
24
- <layout version="1.1.1">
25
  <barzahlen_checkout_processing>
26
  <reference name="root">
27
  <action method="setTemplate"><template>page/1column.phtml</template></action>
21
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL-3.0)
22
  */
23
  -->
24
+ <layout version="1.1.2">
25
  <barzahlen_checkout_processing>
26
  <reference name="root">
27
  <action method="setTemplate"><template>page/1column.phtml</template></action>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ZerebroInternet_Barzahlen</name>
4
- <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Source License (OSL) 3.0</license>
7
  <channel>community</channel>
@@ -14,9 +14,9 @@
14
  Barzahlen let's your customers pay cash online. You get a payment confirmation in real-time and you benefit from our payment guarantee and new customer groups. See how Barzahlen works: http://www.barzahlen.de/partner/funktionsweise</description>
15
  <notes>In this version the following things were already tested successfully on 1.4.2.0,1.5.0.1,1.5.1.0,1.6.0.0,1.6.1.0,1.6.2.0,1.7.0.0,1.7.0.1,1.7.0.2</notes>
16
  <authors><author><name>Martin Seener</name><user>auto-converted</user><email>support@barzahlen.de</email></author><author><name>Alexander Diebler</name><user>auto-converted</user><email>support@barzahlen.de</email></author></authors>
17
- <date>2013-02-04</date>
18
- <time>11:23:43</time>
19
- <contents><target name="magecommunity"><dir name="ZerebroInternet"><dir name="Barzahlen"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="b5debd20e6e4610d445c8939eb604755"/></dir><file name="View.php" hash="356e39bbf6ec60ebc629e4db7250a2b8"/></dir></dir></dir><file name="Form.php" hash="7b8757345dd8078bc2656d4d6ff1bc5a"/><file name="Info.php" hash="aa843fd0bc613227083ebe1fc9758b23"/></dir><dir name="Helper"><file name="Data.php" hash="b09cbe4014347450f8acc16969489f0e"/></dir><dir name="Model"><dir name="Adminexceptions"><file name="Allspecificcountries.php" hash="050286cb2d67238f6d2a04657bcd47c7"/><file name="Maxordertotal.php" hash="1c1647bdf769bc7c4e7890b10212f655"/><file name="Notificationkey.php" hash="90c05ffb94c780c735e4d4a9f2e5e80c"/><file name="Paymentkey.php" hash="010bf4c06ec5c52f1a0b2ede1860bbdc"/><file name="Shopid.php" hash="028283a7457170e0d3082d43be5d4d54"/><file name="Specificcountry.php" hash="30ec14a1769fa2bbfc9473588e395a7f"/><file name="Title.php" hash="2d5aaaa22a305f0d17ec7f0b33708689"/></dir><dir name="Api"><dir name="Request"><file name="Abstract.php" hash="7bc7ad30078b60eab37572c3ee059d34"/><file name="Payment.php" hash="65daf56c9d0fa9527485a4d1b16ca52e"/><file name="Refund.php" hash="3832874b945ee0cfe01fe403ac751f7d"/><file name="Resend.php" hash="03a9f603503b2c95a137b3afa074ea1a"/><file name="Update.php" hash="2609e7a4e9eab13910b25734dd506c3c"/></dir><dir name="certs"><file name="ca-bundle.crt" hash="dc15a3a0ee5d16ea1fa8e3e104d4d40f"/></dir><file name="Abstract.php" hash="83ece620553bf093613683817e5ab66c"/><file name="Notification.php" hash="472ee435c75ba6f0340f9bdbd12a8c7c"/></dir><file name="Api.php" hash="c024a9242149375d44839ff97df16493"/><file name="Barzahlen.php" hash="f23a35c07c8e0cd6c178b834e075464f"/><file name="Ipn.php" hash="117d41011a39d2f6d6ffa1256377a19f"/><file name="Payment.php" hash="69b0fdae4a4892ee580f0fb4c0597ddf"/><file name="Refund.php" hash="2e4beeadcac79ba3292457b47e8ac854"/><file name="Resend.php" hash="9e096207ac0408f6d757f9e4cafc81f2"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="0cd1ea9ea6d1372d1997eec682e4a7c9"/><file name="IpnController.php" hash="69c1f025b92054a8e798310c263b78a6"/><file name="ResendController.php" hash="3ff28616c405317300edff7bd8eee7e0"/></dir><dir name="etc"><file name="config.xml" hash="63ad45e745759400bb7d2f9b8c5a3171"/><file name="system.xml" hash="8ce2576ead32cbc809e3979266a554f2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ZerebroInternet_Barzahlen.xml" hash="870d1ed9a0977ca9bfd861850ed8d72c"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="ZerebroInternet_Barzahlen_Admin.csv" hash="74a07c8b552c792821bf8e537d2ea737"/><file name="ZerebroInternet_Barzahlen_Frontend.csv" hash="eca00f201a8a75063a90b69e12586596"/></dir><dir name="en_US"><file name="ZerebroInternet_Barzahlen_Admin.csv" hash="136c76958b729bd2fce5a27d07169d9a"/><file name="ZerebroInternet_Barzahlen_Frontend.csv" hash="ba4c7050219ab94072c1acc567db96dd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="barzahlen"><file name="info.phtml" hash="a4d8e7a934b5ed3c934ed232cb8c4b72"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="barzahlen.xml" hash="e676fd8d04c87969a110acd1b394ab9c"/></dir><dir name="template"><dir name="barzahlen"><file name="form.phtml" hash="e333610dde7f4f205cd004877de36383"/><file name="info.phtml" hash="57d121b58376d665b452543b0889b87c"/><file name="mark.phtml" hash="5433c4fd69a564de0cdecbba815c59e5"/><file name="processing.phtml" hash="7cbfff204dfec836d69d7a8ab7790488"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ZerebroInternet_Barzahlen</name>
4
+ <version>1.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Source License (OSL) 3.0</license>
7
  <channel>community</channel>
14
  Barzahlen let's your customers pay cash online. You get a payment confirmation in real-time and you benefit from our payment guarantee and new customer groups. See how Barzahlen works: http://www.barzahlen.de/partner/funktionsweise</description>
15
  <notes>In this version the following things were already tested successfully on 1.4.2.0,1.5.0.1,1.5.1.0,1.6.0.0,1.6.1.0,1.6.2.0,1.7.0.0,1.7.0.1,1.7.0.2</notes>
16
  <authors><author><name>Martin Seener</name><user>auto-converted</user><email>support@barzahlen.de</email></author><author><name>Alexander Diebler</name><user>auto-converted</user><email>support@barzahlen.de</email></author></authors>
17
+ <date>2013-02-19</date>
18
+ <time>11:34:47</time>
19
+ <contents><target name="magecommunity"><dir name="ZerebroInternet"><dir name="Barzahlen"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="View.php" hash="b5debd20e6e4610d445c8939eb604755"/></dir><file name="View.php" hash="356e39bbf6ec60ebc629e4db7250a2b8"/></dir></dir></dir><file name="Form.php" hash="7b8757345dd8078bc2656d4d6ff1bc5a"/><file name="Info.php" hash="aa843fd0bc613227083ebe1fc9758b23"/></dir><dir name="Helper"><file name="Data.php" hash="b09cbe4014347450f8acc16969489f0e"/></dir><dir name="Model"><dir name="Adminexceptions"><file name="Allspecificcountries.php" hash="050286cb2d67238f6d2a04657bcd47c7"/><file name="Maxordertotal.php" hash="1c1647bdf769bc7c4e7890b10212f655"/><file name="Notificationkey.php" hash="90c05ffb94c780c735e4d4a9f2e5e80c"/><file name="Paymentkey.php" hash="010bf4c06ec5c52f1a0b2ede1860bbdc"/><file name="Shopid.php" hash="028283a7457170e0d3082d43be5d4d54"/><file name="Specificcountry.php" hash="30ec14a1769fa2bbfc9473588e395a7f"/><file name="Title.php" hash="2d5aaaa22a305f0d17ec7f0b33708689"/></dir><dir name="Api"><dir name="Request"><file name="Abstract.php" hash="7bc7ad30078b60eab37572c3ee059d34"/><file name="Payment.php" hash="b69ed622bdd218215d3d375e5642c945"/><file name="Refund.php" hash="3832874b945ee0cfe01fe403ac751f7d"/><file name="Resend.php" hash="03a9f603503b2c95a137b3afa074ea1a"/><file name="Update.php" hash="2609e7a4e9eab13910b25734dd506c3c"/></dir><dir name="certs"><file name="ca-bundle.crt" hash="dc15a3a0ee5d16ea1fa8e3e104d4d40f"/></dir><file name="Abstract.php" hash="ddbdffce737e21b046c6e18001f658f1"/><file name="Notification.php" hash="472ee435c75ba6f0340f9bdbd12a8c7c"/></dir><file name="Api.php" hash="c024a9242149375d44839ff97df16493"/><file name="Barzahlen.php" hash="f23a35c07c8e0cd6c178b834e075464f"/><file name="Ipn.php" hash="117d41011a39d2f6d6ffa1256377a19f"/><file name="Payment.php" hash="69b0fdae4a4892ee580f0fb4c0597ddf"/><file name="Refund.php" hash="2e4beeadcac79ba3292457b47e8ac854"/><file name="Resend.php" hash="9e096207ac0408f6d757f9e4cafc81f2"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="0cd1ea9ea6d1372d1997eec682e4a7c9"/><file name="IpnController.php" hash="69c1f025b92054a8e798310c263b78a6"/><file name="ResendController.php" hash="3ff28616c405317300edff7bd8eee7e0"/></dir><dir name="etc"><file name="config.xml" hash="46e4b8b413dde88ee77f30645d33ec9d"/><file name="system.xml" hash="8ce2576ead32cbc809e3979266a554f2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ZerebroInternet_Barzahlen.xml" hash="870d1ed9a0977ca9bfd861850ed8d72c"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="ZerebroInternet_Barzahlen_Admin.csv" hash="74a07c8b552c792821bf8e537d2ea737"/><file name="ZerebroInternet_Barzahlen_Frontend.csv" hash="eca00f201a8a75063a90b69e12586596"/></dir><dir name="en_US"><file name="ZerebroInternet_Barzahlen_Admin.csv" hash="136c76958b729bd2fce5a27d07169d9a"/><file name="ZerebroInternet_Barzahlen_Frontend.csv" hash="ba4c7050219ab94072c1acc567db96dd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="barzahlen"><file name="info.phtml" hash="a4d8e7a934b5ed3c934ed232cb8c4b72"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="barzahlen.xml" hash="de1b809f4eed9cb2701c1ee49e56dbcd"/></dir><dir name="template"><dir name="barzahlen"><file name="form.phtml" hash="e333610dde7f4f205cd004877de36383"/><file name="info.phtml" hash="57d121b58376d665b452543b0889b87c"/><file name="mark.phtml" hash="5433c4fd69a564de0cdecbba815c59e5"/><file name="processing.phtml" hash="7cbfff204dfec836d69d7a8ab7790488"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>