Version Notes
* Send shopping cart information to FerBuy
* Correct support for multi-currency shops
Download this release
Release Info
Developer | Fer Buy |
Extension | Ferratum_Ferbuy |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- app/code/local/Ferratum/Ferbuy/Model/Ferbuy.php +247 -215
- app/code/local/Ferratum/Ferbuy/etc/config.xml +1 -1
- app/code/local/Ferratum/Ferbuy/etc/system.xml +4 -4
- app/design/adminhtml/default/default/layout/ferbuy.xml +0 -26
- package.xml +13 -13
- skin/adminhtml/default/default/ferbuy.css +0 -44
- skin/adminhtml/default/default/images/ferbuy.png +0 -0
app/code/local/Ferratum/Ferbuy/Model/Ferbuy.php
CHANGED
@@ -1,216 +1,248 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento Ferbuy payment extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
*
|
12 |
-
* @category Mage
|
13 |
-
* @package Ferratum_Ferbuy
|
14 |
-
* @author Pavel Saparov, <info@ferbuy.com>
|
15 |
-
* @copyright Copyright (c) 2013 JT Family Holding OY (http://www.ferbuy.com)
|
16 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
-
*/
|
18 |
-
|
19 |
-
class Ferratum_Ferbuy_Model_Ferbuy extends Mage_Payment_Model_Method_Abstract
|
20 |
-
{
|
21 |
-
/**
|
22 |
-
* Payment Method features
|
23 |
-
*
|
24 |
-
* @var mixed
|
25 |
-
*/
|
26 |
-
protected $_code = 'ferbuy';
|
27 |
-
|
28 |
-
/**
|
29 |
-
* FerBuy settings
|
30 |
-
*
|
31 |
-
* @var mixed
|
32 |
-
*/
|
33 |
-
protected $_url = 'https://gateway.ferbuy.com/';
|
34 |
-
protected $_supportedCurrencies = array('SGD', 'PLN', 'CZK');
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Mage_Payment_Model settings
|
38 |
-
*
|
39 |
-
* @var bool
|
40 |
-
*/
|
41 |
-
protected $_isGateway = true;
|
42 |
-
protected $_canAuthorize = true;
|
43 |
-
protected $_canCapture = true;
|
44 |
-
protected $_canUseInternal = false;
|
45 |
-
protected $_canUseCheckout = true;
|
46 |
-
protected $_canUseForMultishipping = true;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Return Gateway Url
|
50 |
-
*
|
51 |
-
* @return string
|
52 |
-
*/
|
53 |
-
public function getGatewayUrl()
|
54 |
-
{
|
55 |
-
$base = Mage::getSingleton('ferbuy/base');
|
56 |
-
$env = ($base->isLive()) ? 'live/' : 'demo/';
|
57 |
-
|
58 |
-
return $this->_url . $env;
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Get plugin version to send to gateway (debugging purposes)
|
63 |
-
*
|
64 |
-
* @return string
|
65 |
-
*/
|
66 |
-
public function getPluginVersion()
|
67 |
-
{
|
68 |
-
return (string) Mage::getConfig()->getNode('modules/Ferratum_Ferbuy/version');
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Get checkout session namespace
|
73 |
-
*
|
74 |
-
* @return Mage_Checkout_Model_Session
|
75 |
-
*/
|
76 |
-
public function getCheckout()
|
77 |
-
{
|
78 |
-
return Mage::getSingleton('checkout/session');
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Get current quote
|
83 |
-
*
|
84 |
-
* @return Mage_Sales_Model_Quote
|
85 |
-
*/
|
86 |
-
public function getQuote()
|
87 |
-
{
|
88 |
-
return $this->getCheckout()->getQuote();
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Get current order
|
93 |
-
*
|
94 |
-
* @return Mage_Sales_Model_Order
|
95 |
-
*/
|
96 |
-
public function getOrder()
|
97 |
-
{
|
98 |
-
$order = Mage::getModel('sales/order');
|
99 |
-
$order->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
|
100 |
-
return $order;
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Magento will use this for payment redirection
|
105 |
-
*
|
106 |
-
* @return string
|
107 |
-
*/
|
108 |
-
public function getOrderPlaceRedirectUrl()
|
109 |
-
{
|
110 |
-
return Mage::getUrl('ferbuy/payment/redirect/', array('_secure' => true));
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Retrieve config value for store by path
|
115 |
-
*
|
116 |
-
* @param string $path
|
117 |
-
* @param mixed $store
|
118 |
-
* @return mixed
|
119 |
-
*/
|
120 |
-
public function getConfigData($field, $storeId = null)
|
121 |
-
{
|
122 |
-
if ($storeId === null) {
|
123 |
-
$storeId = $this->getStore();
|
124 |
-
}
|
125 |
-
|
126 |
-
$configSettings = Mage::getStoreConfig('ferbuy/settings', $storeId);
|
127 |
-
$configGateway = Mage::getStoreConfig('ferbuy/ferbuy', $storeId);
|
128 |
-
$config = array_merge($configSettings, $configGateway);
|
129 |
-
|
130 |
-
return @$config[$field];
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* Check method for processing with base currency
|
135 |
-
*
|
136 |
-
* @param string $currencyCode
|
137 |
-
* @return boolean
|
138 |
-
*/
|
139 |
-
public function canUseForCurrency($currencyCode)
|
140 |
-
{
|
141 |
-
return in_array(
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Change order status
|
146 |
-
*
|
147 |
-
* @param Mage_Sales_Model_Order $order
|
148 |
-
* @return void
|
149 |
-
*/
|
150 |
-
protected function initiateTransactionStatus($order)
|
151 |
-
{
|
152 |
-
// Change order status
|
153 |
-
$newState = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
|
154 |
-
$newStatus = $this->getConfigData('initialized_status');
|
155 |
-
$statusMessage = Mage::helper('ferbuy')->__('Transaction started, waiting for payment.');
|
156 |
-
$order->setState($newState, $newStatus, $statusMessage);
|
157 |
-
$order->save();
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Generates checkout form fields
|
162 |
-
*
|
163 |
-
* @return array
|
164 |
-
*/
|
165 |
-
public function getCheckoutFormFields()
|
166 |
-
{
|
167 |
-
$base = Mage::getSingleton('ferbuy/base');
|
168 |
-
|
169 |
-
$order = $this->getOrder();
|
170 |
-
$customer = $order->getBillingAddress();
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
$
|
189 |
-
$
|
190 |
-
$
|
191 |
-
$
|
192 |
-
$
|
193 |
-
$
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
$
|
199 |
-
|
200 |
-
$
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
)
|
207 |
-
|
208 |
-
|
209 |
-
$
|
210 |
-
$
|
211 |
-
$
|
212 |
-
$
|
213 |
-
|
214 |
-
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento Ferbuy payment extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category Mage
|
13 |
+
* @package Ferratum_Ferbuy
|
14 |
+
* @author Pavel Saparov, <info@ferbuy.com>
|
15 |
+
* @copyright Copyright (c) 2013 JT Family Holding OY (http://www.ferbuy.com)
|
16 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
+
*/
|
18 |
+
|
19 |
+
class Ferratum_Ferbuy_Model_Ferbuy extends Mage_Payment_Model_Method_Abstract
|
20 |
+
{
|
21 |
+
/**
|
22 |
+
* Payment Method features
|
23 |
+
*
|
24 |
+
* @var mixed
|
25 |
+
*/
|
26 |
+
protected $_code = 'ferbuy';
|
27 |
+
|
28 |
+
/**
|
29 |
+
* FerBuy settings
|
30 |
+
*
|
31 |
+
* @var mixed
|
32 |
+
*/
|
33 |
+
protected $_url = 'https://gateway.ferbuy.com/';
|
34 |
+
protected $_supportedCurrencies = array('SGD', 'PLN', 'CZK', 'EUR');
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Mage_Payment_Model settings
|
38 |
+
*
|
39 |
+
* @var bool
|
40 |
+
*/
|
41 |
+
protected $_isGateway = true;
|
42 |
+
protected $_canAuthorize = true;
|
43 |
+
protected $_canCapture = true;
|
44 |
+
protected $_canUseInternal = false;
|
45 |
+
protected $_canUseCheckout = true;
|
46 |
+
protected $_canUseForMultishipping = true;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Return Gateway Url
|
50 |
+
*
|
51 |
+
* @return string
|
52 |
+
*/
|
53 |
+
public function getGatewayUrl()
|
54 |
+
{
|
55 |
+
$base = Mage::getSingleton('ferbuy/base');
|
56 |
+
$env = ($base->isLive()) ? 'live/' : 'demo/';
|
57 |
+
|
58 |
+
return $this->_url . $env;
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Get plugin version to send to gateway (debugging purposes)
|
63 |
+
*
|
64 |
+
* @return string
|
65 |
+
*/
|
66 |
+
public function getPluginVersion()
|
67 |
+
{
|
68 |
+
return (string) Mage::getConfig()->getNode('modules/Ferratum_Ferbuy/version');
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Get checkout session namespace
|
73 |
+
*
|
74 |
+
* @return Mage_Checkout_Model_Session
|
75 |
+
*/
|
76 |
+
public function getCheckout()
|
77 |
+
{
|
78 |
+
return Mage::getSingleton('checkout/session');
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Get current quote
|
83 |
+
*
|
84 |
+
* @return Mage_Sales_Model_Quote
|
85 |
+
*/
|
86 |
+
public function getQuote()
|
87 |
+
{
|
88 |
+
return $this->getCheckout()->getQuote();
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Get current order
|
93 |
+
*
|
94 |
+
* @return Mage_Sales_Model_Order
|
95 |
+
*/
|
96 |
+
public function getOrder()
|
97 |
+
{
|
98 |
+
$order = Mage::getModel('sales/order');
|
99 |
+
$order->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
|
100 |
+
return $order;
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Magento will use this for payment redirection
|
105 |
+
*
|
106 |
+
* @return string
|
107 |
+
*/
|
108 |
+
public function getOrderPlaceRedirectUrl()
|
109 |
+
{
|
110 |
+
return Mage::getUrl('ferbuy/payment/redirect/', array('_secure' => true));
|
111 |
+
}
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Retrieve config value for store by path
|
115 |
+
*
|
116 |
+
* @param string $path
|
117 |
+
* @param mixed $store
|
118 |
+
* @return mixed
|
119 |
+
*/
|
120 |
+
public function getConfigData($field, $storeId = null)
|
121 |
+
{
|
122 |
+
if ($storeId === null) {
|
123 |
+
$storeId = $this->getStore();
|
124 |
+
}
|
125 |
+
|
126 |
+
$configSettings = Mage::getStoreConfig('ferbuy/settings', $storeId);
|
127 |
+
$configGateway = Mage::getStoreConfig('ferbuy/ferbuy', $storeId);
|
128 |
+
$config = array_merge($configSettings, $configGateway);
|
129 |
+
|
130 |
+
return @$config[$field];
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Check method for processing with base currency
|
135 |
+
*
|
136 |
+
* @param string $currencyCode
|
137 |
+
* @return boolean
|
138 |
+
*/
|
139 |
+
public function canUseForCurrency($currencyCode)
|
140 |
+
{
|
141 |
+
return in_array(Mage::app()->getStore()->getCurrentCurrencyCode(), $this->_supportedCurrencies);
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Change order status
|
146 |
+
*
|
147 |
+
* @param Mage_Sales_Model_Order $order
|
148 |
+
* @return void
|
149 |
+
*/
|
150 |
+
protected function initiateTransactionStatus($order)
|
151 |
+
{
|
152 |
+
// Change order status
|
153 |
+
$newState = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
|
154 |
+
$newStatus = $this->getConfigData('initialized_status');
|
155 |
+
$statusMessage = Mage::helper('ferbuy')->__('Transaction started, waiting for payment.');
|
156 |
+
$order->setState($newState, $newStatus, $statusMessage);
|
157 |
+
$order->save();
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Generates checkout form fields
|
162 |
+
*
|
163 |
+
* @return array
|
164 |
+
*/
|
165 |
+
public function getCheckoutFormFields()
|
166 |
+
{
|
167 |
+
$base = Mage::getSingleton('ferbuy/base');
|
168 |
+
|
169 |
+
$order = $this->getOrder();
|
170 |
+
$customer = $order->getBillingAddress();
|
171 |
+
|
172 |
+
//Shopping Cart
|
173 |
+
$items = array();
|
174 |
+
$subtotal = 0;
|
175 |
+
foreach ($order->getItemsCollection() as $item) {
|
176 |
+
if ($item->getQtyToShip() > 0) {
|
177 |
+
$items[] = array(
|
178 |
+
'Description' => $item->getSku() . ': ' . ($item->getDescription() ? $item->getDescription() : 'N/A'),
|
179 |
+
'Name' => $item->getName(),
|
180 |
+
'Price' => round($item->getPrice() * 100, 0),
|
181 |
+
'Quantity' => $item->getQtyToShip()
|
182 |
+
);
|
183 |
+
}
|
184 |
+
$subtotal+=round($item->getPrice() * 100, 0) * $item->getQtyToShip();
|
185 |
+
}
|
186 |
+
|
187 |
+
//shopping_cart
|
188 |
+
$shopping_cart = array();
|
189 |
+
$shopping_cart['tax'] = round($order->getTaxAmount()* 100,0) ;
|
190 |
+
$shopping_cart['discount'] = round($order->getDiscountAmount()* 100,0);
|
191 |
+
$shopping_cart['shipping'] = round($order->getShippingAmount()* 100,0);
|
192 |
+
$shopping_cart['items'] = $items;
|
193 |
+
$shopping_cart['subtotal'] = $subtotal;
|
194 |
+
$shopping_cart['total'] = round($order->getGrandTotal()* 100,0);
|
195 |
+
|
196 |
+
//Encode the shopping cart
|
197 |
+
if(function_exists('json_encode')){
|
198 |
+
$encodedShoppingCart=json_encode($shopping_cart);
|
199 |
+
}else{
|
200 |
+
$encodedShoppingCart=serialize($shopping_cart);
|
201 |
+
}
|
202 |
+
// Add initiate state
|
203 |
+
$this->initiateTransactionStatus($order);
|
204 |
+
|
205 |
+
$s_arr = array();
|
206 |
+
$s_arr['site_id'] = $this->getConfigData('site_id');
|
207 |
+
$s_arr['reference'] = $order->getIncrementId();
|
208 |
+
$s_arr['amount'] = sprintf('%.0f', $order->getGrandTotal() * 100);
|
209 |
+
$s_arr['currency'] = $order->getOrderCurrencyCode();
|
210 |
+
$s_arr['first_name'] = $customer->getFirstname();
|
211 |
+
$s_arr['last_name'] = $customer->getLastname();
|
212 |
+
$s_arr['email_address'] = $order->getCustomerEmail();
|
213 |
+
$s_arr['address'] = $customer->getStreet(1);
|
214 |
+
$s_arr['address_line2'] = $customer->getStreet(2);
|
215 |
+
$s_arr['city'] = $customer->getCity();
|
216 |
+
$s_arr['country_iso'] = $customer->getCountry();
|
217 |
+
$s_arr['postal_code'] = $customer->getPostcode();
|
218 |
+
$s_arr['mobile_phone'] = $customer->getTelephone();
|
219 |
+
$s_arr['return_url_ok'] = Mage::getUrl('ferbuy/payment/success/', array('_secure' => true));
|
220 |
+
$s_arr['return_url_cancel'] = Mage::getUrl('ferbuy/payment/cancel/', array('_secure' => true));
|
221 |
+
$s_arr['shop_version'] = 'Magento '. Mage::getVersion();
|
222 |
+
$s_arr['plugin_name'] = 'Ferratum_Ferbuy';
|
223 |
+
$s_arr['plugin_version'] = $this->getPluginVersion();
|
224 |
+
$s_arr['shopping_cart'] = $encodedShoppingCart;
|
225 |
+
//$s_arr['extra'] = $this->getCheckout()->getFerbuyQuoteId();
|
226 |
+
|
227 |
+
$env = ($base->isLive()) ? 'live' : 'demo';
|
228 |
+
$s_arr['checksum'] = sha1(join("&", array(
|
229 |
+
$env,
|
230 |
+
$s_arr['site_id'],
|
231 |
+
$s_arr['reference'],
|
232 |
+
$s_arr['currency'],
|
233 |
+
$s_arr['amount'],
|
234 |
+
$s_arr['first_name'],
|
235 |
+
$s_arr['last_name'],
|
236 |
+
$this->getConfigData('hash_key')
|
237 |
+
)));
|
238 |
+
|
239 |
+
// Logging
|
240 |
+
$base->log('Initiating a new transaction');
|
241 |
+
$base->log('Sending customer to FerBuy with values:');
|
242 |
+
$base->log('URL = ' . $this->getGatewayUrl());
|
243 |
+
|
244 |
+
$base->log($s_arr);
|
245 |
+
|
246 |
+
return $s_arr;
|
247 |
+
}
|
248 |
}
|
app/code/local/Ferratum/Ferbuy/etc/config.xml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Ferratum_Ferbuy>
|
23 |
-
<version>1.
|
24 |
</Ferratum_Ferbuy>
|
25 |
</modules>
|
26 |
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Ferratum_Ferbuy>
|
23 |
+
<version>1.1.0</version>
|
24 |
</Ferratum_Ferbuy>
|
25 |
</modules>
|
26 |
|
app/code/local/Ferratum/Ferbuy/etc/system.xml
CHANGED
@@ -30,9 +30,9 @@
|
|
30 |
<show_in_website>1</show_in_website>
|
31 |
<show_in_store>1</show_in_store>
|
32 |
<groups>
|
33 |
-
<settings translate="comment">
|
34 |
<label>Settings</label>
|
35 |
-
<comment><![CDATA[<strong>Note:</strong> Don't forget to set-up in the <a href="https://
|
36 |
<sort_order>100</sort_order>
|
37 |
<show_in_default>1</show_in_default>
|
38 |
<show_in_website>1</show_in_website>
|
@@ -51,7 +51,7 @@
|
|
51 |
<site_id translate="label comment">
|
52 |
<label>Site ID</label>
|
53 |
<frontend_type>text</frontend_type>
|
54 |
-
<comment><![CDATA[Fill in you Site ID number. You can find your Site ID number at <a href="https://
|
55 |
<sort_order>30</sort_order>
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
@@ -60,7 +60,7 @@
|
|
60 |
<hash_key translate="label comment">
|
61 |
<label>Checksum</label>
|
62 |
<frontend_type>text</frontend_type>
|
63 |
-
<comment><![CDATA[Fill in you secret checksum key for the site. You can create your hash key code at <a href="https://
|
64 |
<sort_order>40</sort_order>
|
65 |
<show_in_default>1</show_in_default>
|
66 |
<show_in_website>1</show_in_website>
|
30 |
<show_in_website>1</show_in_website>
|
31 |
<show_in_store>1</show_in_store>
|
32 |
<groups>
|
33 |
+
<settings translate="label comment">
|
34 |
<label>Settings</label>
|
35 |
+
<comment><![CDATA[<strong>Note:</strong> Don't forget to set-up in the <a href="https://my.ferbuy.com/" target="_blank">My Backoffice</a> a Control URL to "http://www.yourdomain.com/ferbuy/payment/control/".]]></comment>
|
36 |
<sort_order>100</sort_order>
|
37 |
<show_in_default>1</show_in_default>
|
38 |
<show_in_website>1</show_in_website>
|
51 |
<site_id translate="label comment">
|
52 |
<label>Site ID</label>
|
53 |
<frontend_type>text</frontend_type>
|
54 |
+
<comment><![CDATA[Fill in you Site ID number. You can find your Site ID number at <a href="https://merchant.ferbuy.com/" target="_blank">Merchant Backoffice</a>.]]></comment>
|
55 |
<sort_order>30</sort_order>
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
60 |
<hash_key translate="label comment">
|
61 |
<label>Checksum</label>
|
62 |
<frontend_type>text</frontend_type>
|
63 |
+
<comment><![CDATA[Fill in you secret checksum key for the site. You can create your hash key code at <a href="https://merchant.ferbuy.com/" target="_blank">Merchant Backoffice</a>.]]></comment>
|
64 |
<sort_order>40</sort_order>
|
65 |
<show_in_default>1</show_in_default>
|
66 |
<show_in_website>1</show_in_website>
|
app/design/adminhtml/default/default/layout/ferbuy.xml
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Magento Ferbuy payment extension
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/osl-3.0.php
|
12 |
-
*
|
13 |
-
* @category Mage
|
14 |
-
* @package Ferratum_Ferbuy
|
15 |
-
* @author Pavel Saparov, <info@ferbuy.com>
|
16 |
-
* @copyright Copyright (c) 2013 JT Family Holding OY (http://www.ferbuy.com)
|
17 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
-
*/
|
19 |
-
-->
|
20 |
-
<layout>
|
21 |
-
<adminhtml_system_config_edit>
|
22 |
-
<reference name="head">
|
23 |
-
<action method="addCss"><name>ferbuy.css</name></action>
|
24 |
-
</reference>
|
25 |
-
</adminhtml_system_config_edit>
|
26 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Ferratum_Ferbuy</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://opensource.org/licenses/
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>FerBuy
|
10 |
<description>FerBuy payments provides the possibility for your customers to pay by invoice. The FerBuy product is currently available in the following countries:
|
11 |

|
12 |
Czech Republic - www.ferbuy.cz
|
13 |
Poland - www.ferbuy.pl
|
14 |
-
Singapore - www.ferbuy.
|
15 |

|
16 |
-
For more information, please visit your local FerBuy website
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<authors><author><name>
|
21 |
-
<date>2013-
|
22 |
-
<time>
|
23 |
-
<contents><target name="magelocal"><dir name="Ferratum"><dir name="Ferbuy"><dir name="Block"><file name="Redirect.php" hash="3c997c3d6741a67daca980dd5bea6b54"/></dir><dir name="Helper"><file name="Data.php" hash="57656afd9b7578c100e551cd7c661319"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Modes.php" hash="8745cabaaf2ba688aa07773eb9e4507c"/></dir></dir></dir></dir><file name="Base.php" hash="95df7645281b6da83a11d5d5b6aab321"/><file name="Ferbuy.php" hash="
|
24 |
<compatible/>
|
25 |
-
<dependencies
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Ferratum_Ferbuy</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/OSL-3.0">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>FerBuy Online Payments</summary>
|
10 |
<description>FerBuy payments provides the possibility for your customers to pay by invoice. The FerBuy product is currently available in the following countries:
|
11 |

|
12 |
Czech Republic - www.ferbuy.cz
|
13 |
Poland - www.ferbuy.pl
|
14 |
+
Singapore - www.ferbuy.com
|
15 |

|
16 |
+
For more information, please visit your local FerBuy website.
|
17 |
+
</description>
|
18 |
+
<notes>* Send shopping cart information to FerBuy
|
19 |
+
* Correct support for multi-currency shops</notes>
|
20 |
+
<authors><author><name>ferbuy</name><user>ferbuy</user><email>info@ferbuy.com</email></author></authors>
|
21 |
+
<date>2013-08-20</date>
|
22 |
+
<time>15:18:28</time>
|
23 |
+
<contents><target name="magelocal"><dir name="Ferratum"><dir name="Ferbuy"><dir name="Block"><file name="Redirect.php" hash="3c997c3d6741a67daca980dd5bea6b54"/></dir><dir name="Helper"><file name="Data.php" hash="57656afd9b7578c100e551cd7c661319"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Modes.php" hash="8745cabaaf2ba688aa07773eb9e4507c"/></dir></dir></dir></dir><file name="Base.php" hash="95df7645281b6da83a11d5d5b6aab321"/><file name="Ferbuy.php" hash="40cfe8b707e4b1536113b83e1cafc006"/></dir><dir name="controllers"><file name="PaymentController.php" hash="d077d19ef89a7233e28da89bb5f212a8"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3ef2013840386516ff6700925b8d3d89"/><file name="config.xml" hash="2f6c402705073d1ab0ac5206e876b4f6"/><file name="system.xml" hash="6867d0d6cd45adaf384f6069fbe2a4e4"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="ferbuy.xml" hash=""/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="ferbuy"><file name="redirect.phtml" hash="5e1940098954f124ea7b9b973ba94e72"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ferratum_Ferbuy.xml" hash="63ac15b41485745bc375b770d71530f4"/></dir></target></contents>
|
24 |
<compatible/>
|
25 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
26 |
</package>
|
skin/adminhtml/default/default/ferbuy.css
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Magento Ferbuy payment extension
|
3 |
-
*
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
-
* that is bundled with this package in the file LICENSE.txt.
|
8 |
-
* It is also available through the world-wide-web at this URL:
|
9 |
-
* http://opensource.org/licenses/osl-3.0.php
|
10 |
-
*
|
11 |
-
* @category Mage
|
12 |
-
* @package Ferratum_Ferbuy
|
13 |
-
* @author Pavel Saparov, <info@ferbuy.com>
|
14 |
-
* @copyright Copyright (c) 2013 JT Family Holding OY (http://www.ferbuy.com)
|
15 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
-
*/
|
17 |
-
|
18 |
-
h3.ferbuy-header { background:url(images/ferbuy.png) no-repeat 0 0; height:0; overflow:hidden; padding:22px 0 0; width:55px; }
|
19 |
-
|
20 |
-
ul.tabs a.ferbuy-section,
|
21 |
-
ul.tabs a.ferbuy-section:hover { background:url(images/tabs_span_bg.gif) repeat-x 0 100%; border-bottom:none; padding:0.5em 0.5em 0.5em 1.5em; }
|
22 |
-
ul.tabs a.ferbuy-section:hover { background-color:#d8e6e6; }
|
23 |
-
ul.tabs a.ferbuy-section.active, ul.tabs a.ferbuy-section.active:hover { background-color:#fff; }
|
24 |
-
ul.tabs a.ferbuy-section span,
|
25 |
-
ul.tabs a.ferbuy-section:hover span { background:url(images/ferbuy.png) no-repeat 0 0; height:0; overflow:hidden; padding:22px 0 0; width:55px; }
|
26 |
-
|
27 |
-
.ferbuy-selection { border-collapse:collapse; width:100%; }
|
28 |
-
.ferbuy-selection .ferbuy-selection-info { text-align:right; }
|
29 |
-
.ferbuy-selection th { font-size:13px; padding:5px 0; text-align:left; vertical-align:middle; }
|
30 |
-
.ferbuy-selection td { background:#f2f2f2; border-bottom:5px solid #fff; padding:5px; vertical-align:top; }
|
31 |
-
.ferbuy-selection .ferbuy-selection-simplified { background:#fff; padding-left:35px; }
|
32 |
-
.ferbuy-selection td a { color:#2997d8; }
|
33 |
-
.ferbuy-selection td strong { color:#3c616a; }
|
34 |
-
.ferbuy-selection td label { display:block; padding-left:30px; text-indent:-30px; }
|
35 |
-
.ferbuy-selection td div label { display:inline; padding:0; text-indent:0; }
|
36 |
-
.ferbuy-selection td input { height:13px; overflow:hidden; margin-right:15px; position:relative; top:-1px; width:13px; vertical-align:middle; }
|
37 |
-
|
38 |
-
.ferbuy-config .form-list { width:100%; }
|
39 |
-
.ferbuy-config tr.hover { background:#f7f7f7; }
|
40 |
-
.ferbuy-config tr.hover label { cursor:help; }
|
41 |
-
|
42 |
-
.ferbuy-credentials { border:1px solid #f2f2f2; }
|
43 |
-
.ferbuy-credentials caption { padding:5px; text-align:left; }
|
44 |
-
.ferbuy-credentials .value { color:#ccc; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/adminhtml/default/default/images/ferbuy.png
DELETED
Binary file
|