Ferratum_Ferbuy - Version 1.4.2

Version Notes

v1.4.2:
Adding language parameter when redirected to Gateway.

v1.4.1:
Adding Finnish translation.

v1.4.0:
Fixing configuration errors.
Adding Pre-Check link option.
Adding TransactionID after the payment.
Adding API MarkAsShipped.

v1.3.2:
Minor bug fixes in Demo mode.

v1.3.1:
Adding Bulgarian localisation
Adding Czech localisation
Adding Polish localisation

v1.3.0:
Adding localisation support

Download this release

Release Info

Developer Fer Buy
Extension Ferratum_Ferbuy
Version 1.4.2
Comparing to
See all releases


Code changes from version 1.4.1 to 1.4.2

app/code/local/Ferratum/Ferbuy/Model/Ferbuy.php CHANGED
@@ -205,8 +205,8 @@ class Ferratum_Ferbuy_Model_Ferbuy extends Mage_Payment_Model_Method_Abstract
205
  $s_arr['shop_version'] = 'Magento '. Mage::getVersion();
206
  $s_arr['plugin_name'] = 'Ferratum_Ferbuy';
207
  $s_arr['plugin_version'] = Mage::helper('ferbuy')->getPluginVersion();
208
- $s_arr['shopping_cart'] = $encodedShoppingCart;
209
- //$s_arr['extra'] = $this->getCheckout()->getFerbuyQuoteId();
210
 
211
  $env = ( Mage::helper('ferbuy')->isLive()) ? 'live' : 'demo';
212
  $s_arr['checksum'] = sha1(join("&", array(
205
  $s_arr['shop_version'] = 'Magento '. Mage::getVersion();
206
  $s_arr['plugin_name'] = 'Ferratum_Ferbuy';
207
  $s_arr['plugin_version'] = Mage::helper('ferbuy')->getPluginVersion();
208
+ $s_arr['shopping_cart'] = $encodedShoppingCart;
209
+ $s_arr['language'] = substr(Mage::getStoreConfig('general/locale/code', $order->getStoreId()), 0, 2);
210
 
211
  $env = ( Mage::helper('ferbuy')->isLive()) ? 'live' : 'demo';
212
  $s_arr['checksum'] = sha1(join("&", array(
app/code/local/Ferratum/Ferbuy/controllers/PaymentController.php CHANGED
@@ -141,55 +141,4 @@ class Ferratum_Ferbuy_PaymentController extends Mage_Core_Controller_Front_Actio
141
  // Display transaction_id and status
142
  echo $data['transaction_id'].'.'.$data['status'];
143
  }
144
-
145
- public function testAction()
146
- {
147
- /* @var $order Mage_Sales_Model_Order */
148
- $order = Mage::getModel('sales/order')->loadByIncrementId(145000011);
149
- $payment = $order->getPayment();
150
- var_dump($payment->getLastTransId());
151
-
152
- var_dump($payment->getMethod());
153
-
154
- $method = Mage::getModel('ferbuy/ferbuy')->getCode();
155
- var_dump($method);
156
-
157
- $shipmentCollection = Mage::getResourceModel('sales/order_shipment_collection')
158
- ->setOrderFilter($order)
159
- ->load();
160
-
161
- foreach ($shipmentCollection as $shipment) {
162
- foreach ($shipment->getAllTracks() as $track) {
163
- var_dump($track->getData());
164
- }
165
- }
166
-
167
- var_dump(Mage::getStoreConfig('payment/ferbuy/sort_order', 1));
168
- var_dump(Mage::getStoreConfig('ferbuy/ferbuy/sort_order', 1));
169
-
170
- Mage::helper('ferbuy')->log("FerBuy API MarkOrderShipped with response:");
171
-
172
- var_dump(Mage::helper('ferbuy')->getIsDebug());
173
-
174
- /*$newStatus = Mage::helper('ferbuy')->getCompleteStatus();
175
- $newState = Mage_Sales_Model_Order::STATE_PROCESSING;
176
- $order->setState($newState, $newStatus, "Moving to processing");
177
- $order->save();*/
178
-
179
- try {
180
- /*$payment->setTransactionId('2015111113475885');
181
- $formattedPrice = "80 EUR";
182
- $message = Mage::helper('ferbuy')->__('Ordered amount of %s.', $formattedPrice);
183
- $payment->addTransaction( Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER, null, false, $message);
184
- $order->save();*/
185
-
186
- //$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, Mage::helper('ferbuy')->getCompleteStatus(), "Message");
187
- //$order->save();
188
- /*$order->setNewTransactionId("FERBUY_123456");
189
- $order->save();*/
190
- }
191
- catch(Exception $e) {
192
- var_dump($e);
193
- }
194
- }
195
  }
141
  // Display transaction_id and status
142
  echo $data['transaction_id'].'.'.$data['status'];
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
app/code/local/Ferratum/Ferbuy/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config>
21
  <modules>
22
  <Ferratum_Ferbuy>
23
- <version>1.4.1</version>
24
  </Ferratum_Ferbuy>
25
  </modules>
26
 
20
  <config>
21
  <modules>
22
  <Ferratum_Ferbuy>
23
+ <version>1.4.2</version>
24
  </Ferratum_Ferbuy>
25
  </modules>
26
 
app/design/frontend/base/default/template/ferbuy/redirect.phtml CHANGED
@@ -1,3 +1,5 @@
1
  <?php echo Mage::helper("ferbuy")->__("You will be redirected to FerBuy to finish your transaction."); ?>
2
  <?php echo $this->getForm(); ?>
3
- <script type="text/javascript">document.getElementById("ferbuy_checkout").submit();</script>
 
 
1
  <?php echo Mage::helper("ferbuy")->__("You will be redirected to FerBuy to finish your transaction."); ?>
2
  <?php echo $this->getForm(); ?>
3
+ <script type="text/javascript">
4
+ document.getElementById("ferbuy_checkout").submit();
5
+ </script>
app/locale/bg_BG/Ferratum_Ferbuy.csv CHANGED
@@ -38,4 +38,5 @@
38
  "Transaction timed out.","Транзакцията е изтекла."
39
  "Transaction canceled by user.","Транзакцията е отказана от потребител."
40
  "Transaction started, waiting for payment.","Транзакцията е започната, изчакване за плащане."
41
- "You will be redirected to FerBuy to finish your transaction.","Ще бъдете пренасочени към FerBuy, за да завършите Вашата транзакция."
 
38
  "Transaction timed out.","Транзакцията е изтекла."
39
  "Transaction canceled by user.","Транзакцията е отказана от потребител."
40
  "Transaction started, waiting for payment.","Транзакцията е започната, изчакване за плащане."
41
+ "You will be redirected to FerBuy to finish your transaction.","Пренасочваме ви към FerBuy, за да завършите транзакцията си."
42
+ "You will be redirected to the FerBuy website when you place an order.","С FerBuy може да платите покупката си след 14 дни с 0лв оскъпяване. Ще бъдете пренасочени към FerBuy."
app/locale/cs_CZ/Ferratum_Ferbuy.csv CHANGED
@@ -39,3 +39,4 @@
39
  "Transaction canceled by user.","Transakce stornována uživatelem."
40
  "Transaction started, waiting for payment.","Transakce aktivní, čekající na zaplacení."
41
  "You will be redirected to FerBuy to finish your transaction.","Budete přesměrování na platební bránu FerBuy k dokončení platby."
 
39
  "Transaction canceled by user.","Transakce stornována uživatelem."
40
  "Transaction started, waiting for payment.","Transakce aktivní, čekající na zaplacení."
41
  "You will be redirected to FerBuy to finish your transaction.","Budete přesměrování na platební bránu FerBuy k dokončení platby."
42
+ "You will be redirected to the FerBuy website when you place an order.","Budete přesměrováni na webové stránky FerBuy při zadání objednávky."
app/locale/fi_FI/Ferratum_Ferbuy.csv CHANGED
@@ -38,4 +38,5 @@
38
  "Transaction timed out.","Maksutapahtuma aikakatkaistiin."
39
  "Transaction canceled by user.","Maksutapahtuma peruttu käyttäjän toimesta."
40
  "Transaction started, waiting for payment.","Maksutapahtuma aloitettu, odotetaan maksua."
41
- "You will be redirected to FerBuy to finish your transaction.","Sinut uudelleenohjataan FerBuy:n sivustolle suorittamaan maksutapahtuma loppuun."
 
38
  "Transaction timed out.","Maksutapahtuma aikakatkaistiin."
39
  "Transaction canceled by user.","Maksutapahtuma peruttu käyttäjän toimesta."
40
  "Transaction started, waiting for payment.","Maksutapahtuma aloitettu, odotetaan maksua."
41
+ "You will be redirected to FerBuy to finish your transaction.","Sinut uudelleenohjataan FerBuy:n sivustolle suorittamaan maksutapahtuma loppuun."
42
+ "You will be redirected to the FerBuy website when you place an order.","Sinut ohjataan FerBuy verkkosivuilla, kun tilauksen."
app/locale/pl_PL/Ferratum_Ferbuy.csv CHANGED
@@ -39,3 +39,4 @@
39
  "Transaction canceled by user.","Transakcja anulowana przez użytkownika."
40
  "Transaction started, waiting for payment.","Transakcja rozpoczęta, oczekiwanie na płatność."
41
  "You will be redirected to FerBuy to finish your transaction.","Zostaniesz przekierowany na stronę FerBuy aby dokończyć transakcję."
 
39
  "Transaction canceled by user.","Transakcja anulowana przez użytkownika."
40
  "Transaction started, waiting for payment.","Transakcja rozpoczęta, oczekiwanie na płatność."
41
  "You will be redirected to FerBuy to finish your transaction.","Zostaniesz przekierowany na stronę FerBuy aby dokończyć transakcję."
42
+ "You will be redirected to the FerBuy website when you place an order.","Zostaniesz przekierowany do strony FerBuy podczas składania zamówienia."
package.xml CHANGED
@@ -1,14 +1,17 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ferratum_Ferbuy</name>
4
- <version>1.4.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FerBuy Payment Module</summary>
10
  <description>FerBuy is a simple and safe payment solution based on the "buy now, pay later" concept. Through FerBuy you can shop from home and pay within 14 days. See below how simple this is.</description>
11
- <notes>v1.4.1:&#xD;
 
 
 
12
  Adding Finnish translation.&#xD;
13
  &#xD;
14
  v1.4.0:&#xD;
@@ -28,9 +31,9 @@ v1.3.1:&#xD;
28
  v1.3.0:&#xD;
29
  Adding localisation support</notes>
30
  <authors><author><name>Fer Buy</name><user>FerBuy</user><email>info@ferbuy.com</email></author></authors>
31
- <date>2015-12-01</date>
32
- <time>12:25:55</time>
33
- <contents><target name="magelocal"><dir name="Ferratum"><dir name="Ferbuy"><dir name="Block"><file name="Form.php" hash="7c4502b9148423ab05bf0ee457010465"/><file name="Redirect.php" hash="bdb59a1854ced707363d054ae1e9d4a4"/></dir><dir name="Helper"><file name="Data.php" hash="c72088c59b8907d51fc11b4b06c012a7"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Modes.php" hash="aa5f540849179c47ea6eed09aad77f6d"/></dir></dir></dir></dir><file name="Api.php" hash="a44d0a664a39cebb1c29c9cf3d857c49"/><file name="Base.php" hash="5642c425aef8f4b17b7df00b79da5bb1"/><file name="Ferbuy.php" hash="b0d9fda0ad74dedd63fc9a714bfc977b"/><file name="Observer.php" hash="7fe4bb6766018fdfa63ce4be61838399"/></dir><dir name="controllers"><file name="PaymentController.php" hash="9deb0d8c0d3c77c74ab1e07f05a5362a"/></dir><dir name="etc"><file name="config.xml" hash="2857f5fd67f5879c7de0ec49c2229891"/><file name="system.xml" hash="6e894d032d58bd91ea28859056a54a76"/></dir><file name=".DS_Store" hash="f6df0519f86804d0f045060ba3f31ea0"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ferratum_Ferbuy.xml" hash="eeaa05c490b6958c426577bcd3569cb6"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="ferbuy"><file name="info.phtml" hash="f92a94e8ff9539e8024bf5fb1487b92a"/><file name="mark.phtml" hash="7c65c41dec52608974ab973b2230c9c5"/><file name="redirect.phtml" hash="837f367951edbe379bc38ddd0acab8d4"/></dir></dir><dir name="layout"><file name="ferbuy.xml" hash="1d525e887035a8169c7dc9c8e5a61844"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ferbuy.xml" hash="b5158397519eef21968f5ce26a433549"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="ferbuy.css" hash="8fe4e272be171e2072187e7490ca5940"/><dir name="images"><dir name="ferbuy"><file name="logo-ferbuy.png" hash="6f69778a6152cd21c6a6ec2fdc28d1d7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ferbuy.css" hash="f57576556d81380d56ed21b832dcbcb8"/></dir><dir name="images"><dir name="ferbuy"><file name="logo-ferbuy.png" hash="6f69778a6152cd21c6a6ec2fdc28d1d7"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="bg_BG"><file name="Ferratum_Ferbuy.csv" hash="825ea59e072564c66a4884be27b2a7c4"/></dir><dir name="cs_CZ"><file name="Ferratum_Ferbuy.csv" hash="398cba419470aa2de342a339f15a4e1c"/></dir><dir name="en_US"><file name="Ferratum_Ferbuy.csv" hash="51917c005131d11b9eae4596208110cf"/></dir><dir name="pl_PL"><file name="Ferratum_Ferbuy.csv" hash="d9043ce3f33d401b006200d47e045a18"/></dir><dir name="fi_FI"><file name="Ferratum_Ferbuy.csv" hash="e50e33d585a7daf2999e90f22e519121"/></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ferratum_Ferbuy</name>
4
+ <version>1.4.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>FerBuy Payment Module</summary>
10
  <description>FerBuy is a simple and safe payment solution based on the "buy now, pay later" concept. Through FerBuy you can shop from home and pay within 14 days. See below how simple this is.</description>
11
+ <notes>v1.4.2:&#xD;
12
+ Adding language parameter when redirected to Gateway.&#xD;
13
+ &#xD;
14
+ v1.4.1:&#xD;
15
  Adding Finnish translation.&#xD;
16
  &#xD;
17
  v1.4.0:&#xD;
31
  v1.3.0:&#xD;
32
  Adding localisation support</notes>
33
  <authors><author><name>Fer Buy</name><user>FerBuy</user><email>info@ferbuy.com</email></author></authors>
34
+ <date>2016-03-01</date>
35
+ <time>13:21:18</time>
36
+ <contents><target name="magelocal"><dir name="Ferratum"><dir name="Ferbuy"><dir name="Block"><file name="Form.php" hash="7c4502b9148423ab05bf0ee457010465"/><file name="Redirect.php" hash="bdb59a1854ced707363d054ae1e9d4a4"/></dir><dir name="Helper"><file name="Data.php" hash="c72088c59b8907d51fc11b4b06c012a7"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Modes.php" hash="aa5f540849179c47ea6eed09aad77f6d"/></dir></dir></dir></dir><file name="Api.php" hash="a44d0a664a39cebb1c29c9cf3d857c49"/><file name="Base.php" hash="5642c425aef8f4b17b7df00b79da5bb1"/><file name="Ferbuy.php" hash="bb3b29d2cb552e0b8b5aa6efe4e5b9f0"/><file name="Observer.php" hash="7fe4bb6766018fdfa63ce4be61838399"/></dir><dir name="controllers"><file name="PaymentController.php" hash="bb16be834fbf4f8ff39497843f7ff1b8"/></dir><dir name="etc"><file name="config.xml" hash="f0a888cdec7e6f01592215dade1910ef"/><file name="system.xml" hash="6e894d032d58bd91ea28859056a54a76"/></dir><file name=".DS_Store" hash="f6df0519f86804d0f045060ba3f31ea0"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ferratum_Ferbuy.xml" hash="eeaa05c490b6958c426577bcd3569cb6"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="ferbuy"><file name="info.phtml" hash="f92a94e8ff9539e8024bf5fb1487b92a"/><file name="mark.phtml" hash="7c65c41dec52608974ab973b2230c9c5"/><file name="redirect.phtml" hash="962a60122c58c6a3b1ebc05fad28655d"/></dir></dir><dir name="layout"><file name="ferbuy.xml" hash="1d525e887035a8169c7dc9c8e5a61844"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ferbuy.xml" hash="b5158397519eef21968f5ce26a433549"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="ferbuy.css" hash="8fe4e272be171e2072187e7490ca5940"/><dir name="images"><dir name="ferbuy"><file name="logo-ferbuy.png" hash="6f69778a6152cd21c6a6ec2fdc28d1d7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ferbuy.css" hash="f57576556d81380d56ed21b832dcbcb8"/></dir><dir name="images"><dir name="ferbuy"><file name="logo-ferbuy.png" hash="6f69778a6152cd21c6a6ec2fdc28d1d7"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="bg_BG"><file name="Ferratum_Ferbuy.csv" hash="b267a87ca86ee9fae3e5f46779148d39"/></dir><dir name="cs_CZ"><file name="Ferratum_Ferbuy.csv" hash="00f2e95ec2266aacc2e9f728c54fc52a"/></dir><dir name="en_US"><file name="Ferratum_Ferbuy.csv" hash="51917c005131d11b9eae4596208110cf"/></dir><dir name="pl_PL"><file name="Ferratum_Ferbuy.csv" hash="56783809ffe94878d35db3f53c9140e8"/></dir><dir name="fi_FI"><file name="Ferratum_Ferbuy.csv" hash="7133ad466bf7d76212b99f060f9c0a61"/></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>