Version Notes
Fixed:
- magento order email sending issue.
Added:
- EUR and USD currency
Download this release
Release Info
Developer | Laszlo Opauszki |
Extension | TLSoft_BarionPayment |
Version | 0.5.6 |
Comparing to | |
See all releases |
Code changes from version 0.5.5 to 0.5.6
- app/code/community/TLSoft/BarionPayment/Block/Form.php +38 -0
- app/code/community/TLSoft/BarionPayment/Helper/Data.php +4 -3
- app/code/community/TLSoft/BarionPayment/Model/Paymentmethod.php +6 -6
- app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions.php +0 -38
- app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/Collection.php +0 -38
- app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/History.php +0 -29
- app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/History/Collection.php +0 -15
- app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/install-0.0.1.php +0 -67
- app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql-install-0.0.1.php +0 -4
- app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql4-install-0.0.2.php +0 -47
- app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql4-upgrade-0.0.1-0.0.2.php +0 -47
- app/design/frontend/base/default/template/tlsoft/tlbarion/form.phtml +6 -0
- package.xml +27 -21
app/code/community/TLSoft/BarionPayment/Block/Form.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class TLSoft_BarionPayment_Block_Form extends Mage_Payment_Block_Form
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Payment method code
|
7 |
+
* @var string
|
8 |
+
*/
|
9 |
+
protected $_methodCode = "tlbarion";
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Config model instance
|
13 |
+
*
|
14 |
+
* @var Mage_Paypal_Model_Config
|
15 |
+
*/
|
16 |
+
protected $_config;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Set template and redirect message
|
20 |
+
*/
|
21 |
+
protected function _construct()
|
22 |
+
{
|
23 |
+
$this->_config = Mage::getModel('paypal/config')->setMethod($this->getMethodCode());
|
24 |
+
$locale = Mage::app()->getLocale();
|
25 |
+
$this->setTemplate('tlsoft/tlbarion/form.phtml')
|
26 |
+
;
|
27 |
+
return parent::_construct();
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Payment method code getter
|
32 |
+
* @return string
|
33 |
+
*/
|
34 |
+
public function getMethodCode()
|
35 |
+
{
|
36 |
+
return $this->_methodCode;
|
37 |
+
}
|
38 |
+
}
|
app/code/community/TLSoft/BarionPayment/Helper/Data.php
CHANGED
@@ -134,10 +134,11 @@ class TLSoft_BarionPayment_Helper_Data extends Mage_Core_Helper_Abstract
|
|
134 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING);
|
135 |
$order->setStatus('processing');
|
136 |
$order->save();
|
137 |
-
if($order->getId()){
|
138 |
-
$order->sendNewOrderEmail();
|
139 |
-
}
|
140 |
}
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
|
143 |
public function getCurrentOrder()
|
134 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING);
|
135 |
$order->setStatus('processing');
|
136 |
$order->save();
|
|
|
|
|
|
|
137 |
}
|
138 |
+
|
139 |
+
if (is_object($order)) {
|
140 |
+
$order->sendNewOrderEmail()->addStatusHistoryComment("")->setIsCustomerNotified(true)->save();
|
141 |
+
}
|
142 |
}
|
143 |
|
144 |
public function getCurrentOrder()
|
app/code/community/TLSoft/BarionPayment/Model/Paymentmethod.php
CHANGED
@@ -14,11 +14,12 @@ class TLSoft_BarionPayment_Model_Paymentmethod extends Mage_Payment_Model_Method
|
|
14 |
protected $_ordercurrency = "";//order's currency code
|
15 |
protected $_canRefundInvoicePartial = false;
|
16 |
|
17 |
-
protected $_infoBlockType =
|
|
|
18 |
|
19 |
public function canUseForCurrency($currencyCode)
|
20 |
{//p�nznem ellen�rz�se
|
21 |
-
if ($currencyCode == "HUF"){
|
22 |
$session=Mage::getSingleton('checkout/session');
|
23 |
$session->setBarioncurrency($currencyCode);
|
24 |
return true;
|
@@ -84,8 +85,8 @@ class TLSoft_BarionPayment_Model_Paymentmethod extends Mage_Payment_Model_Method
|
|
84 |
$products[$i]["Description"]=$item->getName();
|
85 |
$products[$i]["Quantity"]=round($item->getQtyOrdered());
|
86 |
$products[$i]["Unit"]="db";
|
87 |
-
$products[$i]["UnitPrice"]=round($item->
|
88 |
-
$products[$i]["ItemTotal"]=round($item->
|
89 |
$i++;
|
90 |
}
|
91 |
$shipping = $order->getShippingInclTax();
|
@@ -98,8 +99,7 @@ class TLSoft_BarionPayment_Model_Paymentmethod extends Mage_Payment_Model_Method
|
|
98 |
$products[$i]["ItemTotal"]=round($shipping);
|
99 |
}
|
100 |
|
101 |
-
|
102 |
-
$header = array("POSKey"=>$helper->getShopId($storeid),'PaymentType' => 'Immediate','PaymentWindow' => '00:30:00','GuestCheckOut' => true,'FundingSources' => Array('All'),'PaymentRequestId' => $lastorderid,'RedirectUrl' => Mage::getBaseUrl()."tlbarion/redirection/respond/","locale"=>"hu-HU","Transactions"=>array(array("POSTransactionId"=>$lastorderid,"Payee"=>$email,"Total"=>$ordertotal,"Items"=>$products)));//'CallbackUrl' => Mage::getBaseUrl()."tlbarion/redirection/respond/",
|
103 |
|
104 |
$products="";
|
105 |
|
14 |
protected $_ordercurrency = "";//order's currency code
|
15 |
protected $_canRefundInvoicePartial = false;
|
16 |
|
17 |
+
protected $_infoBlockType = 'tlbarion/info';
|
18 |
+
protected $_formBlockType = 'tlbarion/form';
|
19 |
|
20 |
public function canUseForCurrency($currencyCode)
|
21 |
{//p�nznem ellen�rz�se
|
22 |
+
if ($currencyCode == "HUF" || $currencyCode == "EUR" || $currencyCode == "USD"){
|
23 |
$session=Mage::getSingleton('checkout/session');
|
24 |
$session->setBarioncurrency($currencyCode);
|
25 |
return true;
|
85 |
$products[$i]["Description"]=$item->getName();
|
86 |
$products[$i]["Quantity"]=round($item->getQtyOrdered());
|
87 |
$products[$i]["Unit"]="db";
|
88 |
+
$products[$i]["UnitPrice"]=round($item->getPriceInclTax());
|
89 |
+
$products[$i]["ItemTotal"]=round($item->getRowTotalInclTax());
|
90 |
$i++;
|
91 |
}
|
92 |
$shipping = $order->getShippingInclTax();
|
99 |
$products[$i]["ItemTotal"]=round($shipping);
|
100 |
}
|
101 |
|
102 |
+
$header = array("POSKey"=>$helper->getShopId($storeid),'PaymentType' => 'Immediate','PaymentWindow' => '00:30:00','GuestCheckOut' => true,'FundingSources' => Array('All'),'PaymentRequestId' => $lastorderid,'RedirectUrl' => Mage::getBaseUrl()."tlbarion/redirection/respond/","currency"=>$currency,"locale"=>"hu-HU","Transactions"=>array(array("POSTransactionId"=>$lastorderid,"Payee"=>$email,"Total"=>$ordertotal,"Items"=>$products)));//'CallbackUrl' => Mage::getBaseUrl()."tlbarion/redirection/respond/",
|
|
|
103 |
|
104 |
$products="";
|
105 |
|
app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class TLSoft_BarionPayment_Model_Resource_Transactions extends Mage_Core_Model_Resource_Db_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
$this->_init('tlbarion/transactions','entity_id');
|
7 |
-
}
|
8 |
-
|
9 |
-
public function loadByRealOrderid($object, $transid)
|
10 |
-
{
|
11 |
-
$adapter = $this->_getReadAdapter();
|
12 |
-
$select = $adapter->select()->from($this->getMainTable());
|
13 |
-
|
14 |
-
$select->where($this->getMainTable().'.real_orderid =?', $transid);
|
15 |
-
|
16 |
-
$id=$this->_getReadAdapter()->fetchOne($select);
|
17 |
-
|
18 |
-
if ($id)
|
19 |
-
$this->load($object,$id);
|
20 |
-
return $this;
|
21 |
-
}
|
22 |
-
|
23 |
-
public function loadByOrderId($object, $orderid)
|
24 |
-
{
|
25 |
-
$adapter = $this->_getReadAdapter();
|
26 |
-
$select = $adapter->select()->from($this->getMainTable());
|
27 |
-
|
28 |
-
$select->where($this->getMainTable().'.order_id =?', $orderid)
|
29 |
-
->order($this->getMainTable().'.entity_id DESC');
|
30 |
-
|
31 |
-
$id=$this->_getReadAdapter()->fetchOne($select);
|
32 |
-
|
33 |
-
if ($id)
|
34 |
-
$this->load($object,$id);
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/Collection.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class TLSoft_BarionPayment_Model_Resource_Transactions_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('tlbarion/transactions');
|
8 |
-
}
|
9 |
-
|
10 |
-
public function addStoreFilter($store)
|
11 |
-
{
|
12 |
-
if ($store instanceof Mage_Core_Model_Store) {
|
13 |
-
$store = array($store->getId());
|
14 |
-
}
|
15 |
-
|
16 |
-
$this->getSelect()
|
17 |
-
->where('main_table.store_id in (?)', array(0, $store));
|
18 |
-
|
19 |
-
return $this;
|
20 |
-
}
|
21 |
-
|
22 |
-
public function joinOrder()
|
23 |
-
{
|
24 |
-
$this->getSelect()
|
25 |
-
->joinLeft(array('order_table' => $this->getTable('sales/order_grid')),
|
26 |
-
'order_table.entity_id = main_table.order_id',array('billing_name'=>'billing_name','realorderid'=>'increment_id'));
|
27 |
-
return $this;
|
28 |
-
}
|
29 |
-
|
30 |
-
public function joinOrderFull()
|
31 |
-
{
|
32 |
-
$this->getSelect()
|
33 |
-
->joinLeft(array('order_table' => $this->getTable('sales/order_grid')),
|
34 |
-
'order_table.entity_id = main_table.order_id',array('status'=>'status'));
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/History.php
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class TLSoft_BarionPayment_Model_Resource_Transactions_History extends Mage_Core_Model_Resource_Db_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
$this->_init('tlbarion/transactions_history','entity_id');
|
7 |
-
}
|
8 |
-
|
9 |
-
public function loadByTransId($object, $transid)
|
10 |
-
{
|
11 |
-
$adapter = $this->_getReadAdapter();
|
12 |
-
$select = $adapter->select()->from($this->getMainTable());
|
13 |
-
|
14 |
-
$select->where($this->getMainTable().'.transaction_id =?', $transid);
|
15 |
-
|
16 |
-
$id=$this->_getReadAdapter()->fetchAll($select);
|
17 |
-
|
18 |
-
if ($id)
|
19 |
-
$this->load($object,$id);
|
20 |
-
return $this;
|
21 |
-
}
|
22 |
-
|
23 |
-
protected function _beforeSave(Mage_Core_Model_Abstract $object)
|
24 |
-
{
|
25 |
-
$object->setCreatedAt(Varien_Date::now());
|
26 |
-
return $this;
|
27 |
-
}
|
28 |
-
|
29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/Model/Resource/Transactions/History/Collection.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class TLSoft_BarionPayment_Model_Resource_Transactions_History_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('tlbarion/transactions_history');
|
8 |
-
}
|
9 |
-
|
10 |
-
public function addToSort($attribute,$dir="ASC")
|
11 |
-
{
|
12 |
-
$this->getSelect()->order($attribute.' '.$dir);
|
13 |
-
return $this;
|
14 |
-
}
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/install-0.0.1.php
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$installer = $this;
|
3 |
-
$table = $installer->getConnection()
|
4 |
-
->newTable($installer->getTable('tlbarion/transactions'))
|
5 |
-
->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
|
6 |
-
'identity' => true,
|
7 |
-
'unsigned' => true,
|
8 |
-
'nullable' => false,
|
9 |
-
'primary' => true,
|
10 |
-
), 'Entity Id')
|
11 |
-
->addColumn('real_orderid', Varien_Db_Ddl_Table::TYPE_VARCHAR, 32, array(
|
12 |
-
), 'Transaction id')
|
13 |
-
->addColumn('order_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
|
14 |
-
'unsigned' => true,
|
15 |
-
'nullable' => false,
|
16 |
-
), 'Order Id')
|
17 |
-
->addColumn('ccy', Varien_Db_Ddl_Table::TYPE_VARCHAR, 3, array(
|
18 |
-
), 'Order Currency')
|
19 |
-
->addColumn('application_id', Varien_Db_Ddl_Table::TYPE_VARCHAR, 36, array(
|
20 |
-
), 'Shop ID')
|
21 |
-
->addColumn('amount', Varien_Db_Ddl_Table::TYPE_DECIMAL, '12,2', array(
|
22 |
-
), 'Order Amount, without decimal point')
|
23 |
-
->addColumn('bariontransactionid', Varien_Db_Ddl_Table::TYPE_VARCHAR, 38, array(
|
24 |
-
), 'ShopTransactionId')
|
25 |
-
->addColumn('store_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
|
26 |
-
'unsigned' => true,
|
27 |
-
), 'Store Id')
|
28 |
-
->addColumn('payment_status', Varien_Db_Ddl_Table::TYPE_VARCHAR, 2, array(
|
29 |
-
'nullable' => false,
|
30 |
-
), 'Payment Status')
|
31 |
-
->addColumn('created_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
|
32 |
-
), 'Created At')
|
33 |
-
->addForeignKey($installer->getFkName('tlbarion/transactions', 'store_id', 'core/store', 'store_id'),
|
34 |
-
'store_id', $installer->getTable('core/store'), 'store_id',
|
35 |
-
Varien_Db_Ddl_Table::ACTION_SET_NULL, Varien_Db_Ddl_Table::ACTION_CASCADE)
|
36 |
-
->addForeignKey($installer->getFkName('tlbarion/transactions', 'order_id', 'sales/order', 'entity_id'),
|
37 |
-
'order_id', $installer->getTable('sales/order'), 'entity_id',
|
38 |
-
Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE);
|
39 |
-
$installer->getConnection()->createTable($table);
|
40 |
-
|
41 |
-
$table = $installer->getConnection()
|
42 |
-
->newTable($installer->getTable('tlbarion/transactions_history'))
|
43 |
-
->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
|
44 |
-
'identity' => true,
|
45 |
-
'unsigned' => true,
|
46 |
-
'nullable' => false,
|
47 |
-
'primary' => true,
|
48 |
-
), 'Entity Id')
|
49 |
-
->addColumn('transaction_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 10, array(
|
50 |
-
'unsigned' => true,
|
51 |
-
'nullable' => false,
|
52 |
-
), 'Trasnaction id')
|
53 |
-
->addColumn('error_message', Varien_Db_Ddl_Table::TYPE_VARCHAR, 64, array(
|
54 |
-
), 'Error message')
|
55 |
-
->addColumn('error_number', Varien_Db_Ddl_Table::TYPE_INTEGER, 4, array(
|
56 |
-
), 'Error number')
|
57 |
-
->addColumn('stornoid', Varien_Db_Ddl_Table::TYPE_VARCHAR, 64, array(
|
58 |
-
'nullable' => false,
|
59 |
-
), 'Storno ID')
|
60 |
-
->addColumn('created_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
|
61 |
-
), 'Created At')
|
62 |
-
->addForeignKey($installer->getFkName('tlbarion/transactions_history', 'transaction_id', 'tlbarion/transactions', 'entity_id'),
|
63 |
-
'transaction_id', $installer->getTable('tlbarion/transactions'), 'entity_id',
|
64 |
-
Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE);
|
65 |
-
$installer->getConnection()->createTable($table);
|
66 |
-
|
67 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql-install-0.0.1.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$installer = $this;
|
3 |
-
|
4 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql4-install-0.0.2.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* To change this license header, choose License Headers in Project Properties.
|
5 |
-
* To change this template file, choose Tools | Templates
|
6 |
-
* and open the template in the editor.
|
7 |
-
*/
|
8 |
-
|
9 |
-
$installer = $this;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Start install setup
|
13 |
-
*/
|
14 |
-
$installer->startSetup();
|
15 |
-
|
16 |
-
$installer->run("DROP TABLE IF EXISTS `{$this->getTable('tlbarion/transactions')}`;DROP TABLE IF EXISTS `tlbarion_payment_transactions`;"
|
17 |
-
. "CREATE TABLE `{$this->getTable('tlbarion/transactions')}`("
|
18 |
-
. "`entity_id` int(10) unsigned NOT NULL auto_increment,"
|
19 |
-
. "`order_id` int(10) unsigned NOT NULL default 0,"
|
20 |
-
. "`real_orderid` varchar(32) NOT NULL,"
|
21 |
-
. "`ccy` varchar(3) NOT NULL,"
|
22 |
-
. "`application_id` varchar(36) NOT NULL,"
|
23 |
-
. "`amount` decimal(12,2) NOT NULL,"
|
24 |
-
. "`bariontransactionid` varchar(38) NOT NULL,"
|
25 |
-
. "`store_id` int(10) unsigned NOT NULL default 0,"
|
26 |
-
. "`created_at` datetime NOT NULL default '0000-00-00 00:00:00',"
|
27 |
-
. "`payment_status` varchar(2) NOT NULL,"
|
28 |
-
. "PRIMARY KEY(`entity_id`),"
|
29 |
-
. "KEY `IDX_TLBARION_TRANSACTIONS_ORDER_ID` (`order_id`),"
|
30 |
-
. "KEY `IDX_TLBARION_TRANSACTIONS_STORE_ID` (`store_id`),"
|
31 |
-
. "CONSTRAINT `FK_TLBARION_TRANSACTIONS_ORDER_ID` FOREIGN KEY (`order_id`) REFERENCES `{$installer->getTable('sales_order_entity')}` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE"
|
32 |
-
.") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Barion Transactions Table';"
|
33 |
-
);
|
34 |
-
|
35 |
-
$installer->run("DROP TABLE IF EXISTS `{$this->getTable('tlbarion/transactions_history')}`;DROP TABLE IF EXISTS `tlbarion_payment_transactions_history`;"
|
36 |
-
. "CREATE TABLE `{$this->getTable('tlbarion/transactions_history')}`("
|
37 |
-
. "`entity_id` int(10) unsigned NOT NULL auto_increment,"
|
38 |
-
. "`transaction_id` int(10) unsigned NOT NULL,"
|
39 |
-
. "`error_message` varchar(255),"
|
40 |
-
. "`error_number` varchar(255),"
|
41 |
-
. "`created_at` datetime NOT NULL default '0000-00-00 00:00:00',"
|
42 |
-
. "PRIMARY KEY(`entity_id`),"
|
43 |
-
. "CONSTRAINT `FK_TLBARION_TRANSACTIONS_HISTORY_TRANSACTION_ID` FOREIGN KEY (`transaction_id`) REFERENCES `{$installer->getTable('tlbarion/transactions')}` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE"
|
44 |
-
.") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Barion Transaction History Table';"
|
45 |
-
);
|
46 |
-
|
47 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TLSoft/BarionPayment/sql/tlbarion_setup/mysql4-upgrade-0.0.1-0.0.2.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* To change this license header, choose License Headers in Project Properties.
|
5 |
-
* To change this template file, choose Tools | Templates
|
6 |
-
* and open the template in the editor.
|
7 |
-
*/
|
8 |
-
|
9 |
-
$installer = $this;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Start install setup
|
13 |
-
*/
|
14 |
-
$installer->startSetup();
|
15 |
-
|
16 |
-
$installer->run("DROP TABLE IF EXISTS `{$this->getTable('tlbarion/transactions')}`;DROP TABLE IF EXISTS `tlbarion_payment_transactions`;"
|
17 |
-
. "CREATE TABLE `{$this->getTable('tlbarion/transactions')}`("
|
18 |
-
. "`entity_id` int(10) unsigned NOT NULL auto_increment,"
|
19 |
-
. "`order_id` int(10) unsigned NOT NULL default 0,"
|
20 |
-
. "`real_orderid` varchar(32) NOT NULL,"
|
21 |
-
. "`ccy` varchar(3) NOT NULL,"
|
22 |
-
. "`application_id` varchar(36) NOT NULL,"
|
23 |
-
. "`amount` decimal(12,2) NOT NULL,"
|
24 |
-
. "`bariontransactionid` varchar(38) NOT NULL,"
|
25 |
-
. "`store_id` int(10) unsigned NOT NULL default 0,"
|
26 |
-
. "`created_at` datetime NOT NULL default '0000-00-00 00:00:00',"
|
27 |
-
. "`payment_status` varchar(2) NOT NULL,"
|
28 |
-
. "PRIMARY KEY(`entity_id`),"
|
29 |
-
. "KEY `IDX_TLBARION_TRANSACTIONS_ORDER_ID` (`order_id`),"
|
30 |
-
. "KEY `IDX_TLBARION_TRANSACTIONS_STORE_ID` (`store_id`),"
|
31 |
-
. "CONSTRAINT `FK_TLBARION_TRANSACTIONS_ORDER_ID` FOREIGN KEY (`order_id`) REFERENCES `{$installer->getTable('sales_order_entity')}` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE"
|
32 |
-
.") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Barion Transactions Table';"
|
33 |
-
);
|
34 |
-
|
35 |
-
$installer->run("DROP TABLE IF EXISTS `{$this->getTable('tlbarion/transactions_history')}`;DROP TABLE IF EXISTS `tlbarion_payment_transactions_history`;"
|
36 |
-
. "CREATE TABLE `{$this->getTable('tlbarion/transactions_history')}`("
|
37 |
-
. "`entity_id` int(10) unsigned NOT NULL auto_increment,"
|
38 |
-
. "`transaction_id` int(10) unsigned NOT NULL,"
|
39 |
-
. "`error_message` varchar(255),"
|
40 |
-
. "`error_number` varchar(255),"
|
41 |
-
. "`created_at` datetime NOT NULL default '0000-00-00 00:00:00',"
|
42 |
-
. "PRIMARY KEY(`entity_id`),"
|
43 |
-
. "CONSTRAINT `FK_TLBARION_TRANSACTIONS_HISTORY_TRANSACTION_ID` FOREIGN KEY (`transaction_id`) REFERENCES `{$installer->getTable('tlbarion/transactions')}` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE"
|
44 |
-
.") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Barion Transaction History Table';"
|
45 |
-
);
|
46 |
-
|
47 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/tlsoft/tlbarion/form.phtml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<ul class="form-list checkout-agreements" id="payment_form_tlbarion" style="display:none;">
|
2 |
+
<li><a href="https://www.barion.com/hu/vasarlok/arak-vasarloknak/" target="_blank" rel="nofollow"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?>tlsoft/barion/logo.png" alt="Barion" /></a><br />
|
3 |
+
A kényelmes és biztonságos online fizetést a Barion Payment Zrt. biztosítja.<br />
|
4 |
+
Magyar Nemzeti Bank engedély száma: H-EN-I-1064/2013<br />
|
5 |
+
Bankkártya adatai áruházunkhoz nem jutnak el.<br /></li>
|
6 |
+
</ul>
|
package.xml
CHANGED
@@ -1,38 +1,44 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TLSoft_BarionPayment</name>
|
4 |
-
<version>0.5.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Accepts payment trough Barion's (www.barion.com) Payment Gateway.</summary>
|
10 |
-
<description
|
|
|
11 |

|
12 |
-
Features
|
13 |

|
14 |
-
- Your customers now can pay with their Barion account
|
15 |
-
- Transaction History in magento admin
|
16 |
-
- Translation ready (hungarian translation added)
|
17 |

|
18 |
-
Notes
|
19 |

|
20 |
-
- Barion accepts only HUF
|
21 |
-
- CURL required to use this module
|
22 |

|
23 |
-
|
24 |
-
- Vásárlóid most már a Barion fiókjuk használatával is tudnak fizetni!
|
25 |
-
- Tranzakció történet a magento adminisztrációs felületén.
|
26 |
-
- Tetszőleges nyelvre fordítható (magyar nyelvi fordítás jár a modulhoz)
|
27 |

|
28 |
-
|
29 |
-
-
|
30 |
-
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<authors><author><name>Laszlo Opauszki</name><user>MAG000294151</user><email>info@tlsoft.hu</email></author></authors>
|
33 |
-
<date>
|
34 |
-
<time>09:
|
35 |
-
<contents><target name="magecommunity"><dir name="TLSoft"><dir name="BarionPayment"><dir name="Block"><dir name="Adminhtml"><dir name="Barionpayment"><file name="Grid.php" hash="b107b231362762c4ee1967f5b3fcf098"/><file name="Grid2.php" hash="d4d8a56e5e5d87f6f356901241c7e74d"/><dir name="History"><file name="Grid.php" hash="f3173c80e8af496739a06e416aa64cd1"/></dir><file name="History.php" hash="d2e0cc3fb68cf32117eb244bbe4ba4f4"/></dir><file name="Barionpayment.php" hash="cabb599fcd67ff7baaa20d580ce055e5"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Action2.php" hash="ce81031032a96ac825551e772f248a71"/></dir></dir></dir></dir></dir><file name="Info.php" hash="a2b84b75c0df5b442251e2b9c37c856c"/><file name="Redirection.php" hash="92678ed9ea10ca8f05bf415ca0ad3bdc"/></dir><dir name="Helper"><file name="Data.php" hash="
|
36 |
<compatible/>
|
37 |
-
<dependencies><required><php><min>5.2.13</min><max>
|
38 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TLSoft_BarionPayment</name>
|
4 |
+
<version>0.5.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Accepts payment trough Barion's (www.barion.com) Payment Gateway.</summary>
|
10 |
+
<description><h2>Barion Payment Gateway</h2>
|
11 |
+
A payment gateway solution for Barion system (https://www.barion.com/). It also adds Barion as a payment method in checkout. You can pay in HUF, EUR or USD, online refunds not supported at the moment.<br><br>
|
12 |

|
13 |
+
Features:<br><br>
|
14 |

|
15 |
+
- Your customers now can pay with their Barion account!<br>
|
16 |
+
- Transaction History in magento admin<br>
|
17 |
+
- Translation ready (hungarian translation added)<br><br>
|
18 |

|
19 |
+
Notes:<br><br>
|
20 |

|
21 |
+
- Barion accepts only HUF, EUR and USD<br>
|
22 |
+
- CURL required to use this module<br><br>
|
23 |

|
24 |
+
<hr>
|
|
|
|
|
|
|
25 |

|
26 |
+
Funkciók:<br>
|
27 |
+
- Vásárlóid most már a Barion fiókjuk használatával is tudnak fizetni!<br>
|
28 |
+
- Tranzakció történet a magento adminisztrációs felületén.<br>
|
29 |
+
- Tetszőleges nyelvre fordítható (magyar nyelvi fordítás jár a modulhoz)<br>
|
30 |
+
<br>
|
31 |
+
Megjegyzés:<br>
|
32 |
+
- A Barion jelenleg csak forintot, dollárt és eurót fogad el!
|
33 |
+
<br>- CURL szükséges a modul használatához.<br></div></description>
|
34 |
+
<notes>Fixed:
|
35 |
+
- magento order email sending issue.
|
36 |
+
Added:
|
37 |
+
- EUR and USD currency</notes>
|
38 |
<authors><author><name>Laszlo Opauszki</name><user>MAG000294151</user><email>info@tlsoft.hu</email></author></authors>
|
39 |
+
<date>2017-04-05</date>
|
40 |
+
<time>09:52:10</time>
|
41 |
+
<contents><target name="magecommunity"><dir name="TLSoft"><dir name="BarionPayment"><dir name="Block"><dir name="Adminhtml"><dir name="Barionpayment"><file name="Grid.php" hash="b107b231362762c4ee1967f5b3fcf098"/><file name="Grid2.php" hash="d4d8a56e5e5d87f6f356901241c7e74d"/><dir name="History"><file name="Grid.php" hash="f3173c80e8af496739a06e416aa64cd1"/></dir><file name="History.php" hash="d2e0cc3fb68cf32117eb244bbe4ba4f4"/></dir><file name="Barionpayment.php" hash="cabb599fcd67ff7baaa20d580ce055e5"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Action2.php" hash="ce81031032a96ac825551e772f248a71"/></dir></dir></dir></dir></dir><file name="Form.php" hash="c67d7ddbca919a406709243a7578db0a"/><file name="Info.php" hash="a2b84b75c0df5b442251e2b9c37c856c"/><file name="Redirection.php" hash="92678ed9ea10ca8f05bf415ca0ad3bdc"/></dir><dir name="Helper"><file name="Data.php" hash="e1203c9aab49f4ac3b982fe7dfa16c1f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Transactions"><file name="Collection.php" hash="abfdf0e97ba8451c4bfa92d2009486cd"/><dir name="History"><file name="Collection.php" hash="d1b0cd3e0139bacf89ecfd24f1de7651"/></dir><file name="History.php" hash="d1fedb822f0e46649fcd65b25efaa1f0"/></dir><file name="Transactions.php" hash="e9f3a2f8d6bd109a61d1df4a459e2d61"/></dir><file name="Observer.php" hash="ca1943090703c7ebe3ed9c891bc37f7e"/><file name="Paymentmethod.php" hash="5edd07040e9fb607cbd70cc1608a6851"/><file name="Paymentstatus.php" hash="e3fad04a1b75e9c4fc569ac278c1975a"/><dir name="Transactions"><file name="History.php" hash="f1cc20c3476805a6d023e041f14ef356"/></dir><file name="Transactions.php" hash="43bbec84324cbc4540e9a3ee7bc1c7ab"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BarionpaymentController.php" hash="3ba66ded6d5b6131deb817bfc17c33de"/></dir><file name="RedirectionController.php" hash="f0d38de26a15fd5eaccf7385a7386b4e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="266a47af9d31b926d17e1781dcb10a23"/><file name="config.xml" hash="006cba587bb8aea6d854625179c6d49b"/><file name="system.xml" hash="98e6e0d1fcce7535f70a295840b1282d"/></dir><dir name="sql"><dir name="tlbarion_setup"><file name="mysql4-install-0.0.1.php" hash="78b6e464ac10ee5315f8d6a0be691cbd"/><file name="mysql4-upgrade-0.5.2-0.5.3.php" hash="378a3a35e971d03d99d84e4ae3da3346"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tlsoft"><dir name="tlbarion"><file name="form.phtml" hash="4b6a14872f5f72f8fdfe1e9abfde9d72"/><file name="info.phtml" hash="3569cceafc3e84e3f1521b12a2f7ed91"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tlbarion.xml" hash="508343ee53342afa67507ef7477e3938"/></dir><dir name="template"><dir name="tlsoft"><dir name="tlbarion"><file name="info.phtml" hash="575093b0af6579538984755ff13a1355"/><dir><dir name="pdf"><file name="info.phtml" hash="f442bad3b55a6680c112745c7a42ea71"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TLSoft_BarionPayment.xml" hash="52c5515b4c66c76c2e183e9f9a292bae"/></dir></target><target name="magelocale"><dir name="en_US"><file name="tlsoft_tlbarion.csv" hash="379fa0aa0c37a53456cc37812c733667"/></dir><dir name="hu_HU"><file name="tlsoft_tlbarion.csv" hash="548a76755e902abae496f09e6eca89a4"/></dir></target><target name="mage"><dir name="var"><dir name="uploads"><file name="barion.crt" hash="7665959c4ea93b415742697d66382d7b"/><file name="barion_test.crt" hash="e87d1c6fb65d4e26db19fc7d24a735dd"/></dir></dir></target></contents>
|
42 |
<compatible/>
|
43 |
+
<dependencies><required><php><min>5.2.13</min><max>7.1.3</max></php></required></dependencies>
|
44 |
</package>
|