Version Notes
Added: Focum AchterafBetalen
Fix: sending Ebill from backend (No mail error)
Download this release
Release Info
Developer | Magento Core Team |
Extension | sisowpayment |
Version | 4.2.0 |
Comparing to | |
See all releases |
Code changes from version 4.1.11 to 4.2.0
- app/code/local/Sisow/Block/Paymentmethod/Focum.php +76 -0
- app/code/local/Sisow/Block/Redirect.php +2 -0
- app/code/local/Sisow/Model/Methods/Focum.php +49 -0
- app/code/local/Sisow/controllers/CheckoutController.php +34 -1
- app/code/local/Sisow/etc/config.xml +11 -1
- app/code/local/Sisow/etc/system.xml +144 -0
- app/design/frontend/base/default/template/sisow/checkout/focum_form.phtml +63 -0
- package.xml +7 -6
app/code/local/Sisow/Block/Paymentmethod/Focum.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Sisow_Block_Paymentmethod_Focum extends Mage_Payment_Block_Form
|
3 |
+
{
|
4 |
+
protected function _construct()
|
5 |
+
{
|
6 |
+
$this->setTemplate('sisow/checkout/focum_form.phtml');
|
7 |
+
parent::_construct();
|
8 |
+
}
|
9 |
+
|
10 |
+
public function getFee()
|
11 |
+
{
|
12 |
+
return $this->getMethod()->getFeeArray();
|
13 |
+
}
|
14 |
+
|
15 |
+
public function getPhone() {
|
16 |
+
return $this->getMethod()->getPhone();
|
17 |
+
}
|
18 |
+
|
19 |
+
public function getDates()
|
20 |
+
{
|
21 |
+
$days = array();
|
22 |
+
|
23 |
+
for($i=1;$i<32;$i++)
|
24 |
+
$days[sprintf("%02d", $i)] = sprintf("%02d", $i);
|
25 |
+
|
26 |
+
return $days;
|
27 |
+
}
|
28 |
+
|
29 |
+
public function GetCountryIso()
|
30 |
+
{
|
31 |
+
return $this->GetQuote()->getBillingAddress()->getCountryId();
|
32 |
+
}
|
33 |
+
|
34 |
+
public function getMonths()
|
35 |
+
{
|
36 |
+
$months = array();
|
37 |
+
$months['01'] = $this->__('January');
|
38 |
+
$months['02'] = $this->__('February');
|
39 |
+
$months['03'] = $this->__('March');
|
40 |
+
$months['04'] = $this->__('April');
|
41 |
+
$months['05'] = $this->__('May');
|
42 |
+
$months['06'] = $this->__('June');
|
43 |
+
$months['07'] = $this->__('July');
|
44 |
+
$months['08'] = $this->__('August');
|
45 |
+
$months['09'] = $this->__('September');
|
46 |
+
$months['10'] = $this->__('October');
|
47 |
+
$months['11'] = $this->__('November');
|
48 |
+
$months['12'] = $this->__('December');
|
49 |
+
return $months;
|
50 |
+
}
|
51 |
+
|
52 |
+
public function getYears()
|
53 |
+
{
|
54 |
+
$year = array();
|
55 |
+
for($i=(date("Y")-15);$i>(date("Y")-115);$i--)
|
56 |
+
$year[$i] = $i;
|
57 |
+
|
58 |
+
return $year;
|
59 |
+
}
|
60 |
+
|
61 |
+
public function getMonthly()
|
62 |
+
{
|
63 |
+
return $this->getMethod()->getMonthly();
|
64 |
+
}
|
65 |
+
|
66 |
+
public function getPclass()
|
67 |
+
{
|
68 |
+
return $this->getMethod()->getPclass();
|
69 |
+
}
|
70 |
+
|
71 |
+
private function GetQuote()
|
72 |
+
{
|
73 |
+
return Mage::getSingleton('checkout/session')->getQuote();
|
74 |
+
}
|
75 |
+
}
|
76 |
+
?>
|
app/code/local/Sisow/Block/Redirect.php
CHANGED
@@ -192,6 +192,8 @@ class Sisow_Block_Redirect extends Mage_Core_Block_Abstract
|
|
192 |
$arg['gender'] = $_GET['gender'];
|
193 |
if(isset($_GET['dob']))
|
194 |
$arg['birthdate'] = $_GET['dob'];
|
|
|
|
|
195 |
|
196 |
$arg['ipaddress'] = $_SERVER['REMOTE_ADDR'];
|
197 |
|
192 |
$arg['gender'] = $_GET['gender'];
|
193 |
if(isset($_GET['dob']))
|
194 |
$arg['birthdate'] = $_GET['dob'];
|
195 |
+
if(isset($_GET['iban']))
|
196 |
+
$arg['iban'] = $_GET['iban'];
|
197 |
|
198 |
$arg['ipaddress'] = $_SERVER['REMOTE_ADDR'];
|
199 |
|
app/code/local/Sisow/Model/Methods/Focum.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Sisow_Model_Methods_Focum extends Sisow_Model_Methods_Abstract
|
3 |
+
{
|
4 |
+
protected $_code = 'sisow_focum'; //sisow = modulenaam, ideal = paymentcode sisow
|
5 |
+
protected $_paymentcode = 'focum';
|
6 |
+
|
7 |
+
//blocks for loading templates in checkout
|
8 |
+
protected $_formBlockType = 'sisow/paymentmethod_focum';
|
9 |
+
protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
|
10 |
+
|
11 |
+
protected $_isGateway = true;
|
12 |
+
protected $_canUseCheckout = true;
|
13 |
+
|
14 |
+
public function getOrderPlaceRedirectUrl()
|
15 |
+
{
|
16 |
+
$gender = $_POST['payment']['sisow_gender'];
|
17 |
+
$phone = $_POST['payment']['sisow_phone'];
|
18 |
+
$day = $_POST['payment']['sisow_day'];
|
19 |
+
$month = $_POST['payment']['sisow_month'];
|
20 |
+
$year = $_POST['payment']['sisow_year'];
|
21 |
+
$iban = $_POST['payment']['sisow_iban'];
|
22 |
+
|
23 |
+
$dob = $day . $month . $year;
|
24 |
+
|
25 |
+
/*
|
26 |
+
* Redirect to Sisow
|
27 |
+
* method = paymentcode from Sisow
|
28 |
+
* additional params (fields from the checkout page)
|
29 |
+
*/
|
30 |
+
$url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
|
31 |
+
if (!strpos($url, "?")) $url .= '?';
|
32 |
+
else $url .= '&';
|
33 |
+
$url .= 'method=klarnaacc';
|
34 |
+
$url .= '&gender='.$gender;
|
35 |
+
$url .= '&phone='.$phone;
|
36 |
+
$url .= '&dob='.$dob;
|
37 |
+
$url .= '&iban='.$iban;
|
38 |
+
|
39 |
+
return $url;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function getPhone()
|
43 |
+
{
|
44 |
+
$phone = $this->getQuote()->getBillingAddress()->getTelephone();
|
45 |
+
if (!$phone && $this->getQuote()->getShippingAddress())
|
46 |
+
$phone = $this->getQuote()->getShippingAddress()->getTelephone();
|
47 |
+
return $phone;
|
48 |
+
}
|
49 |
+
}
|
app/code/local/Sisow/controllers/CheckoutController.php
CHANGED
@@ -19,6 +19,32 @@ class Sisow_CheckoutController extends Mage_Core_Controller_Front_Action
|
|
19 |
|
20 |
return $this->_redirect("checkout/onepage/success", array("_secure" => true));
|
21 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
Mage::getSingleton('core/session')->addError('Betaling niet gelukt');
|
23 |
|
24 |
return $this->_redirect('checkout/cart', array("_secure" => true));
|
@@ -68,6 +94,13 @@ class Sisow_CheckoutController extends Mage_Core_Controller_Front_Action
|
|
68 |
*/
|
69 |
$order = Mage::getModel('sales/order')->loadByIncrementId($orderid);
|
70 |
$payment = $order->getPayment();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
if (method_exists($payment, 'getAdditionalInformation')) {
|
73 |
$trxid = $payment->getAdditionalInformation('trxId');
|
@@ -106,7 +139,7 @@ class Sisow_CheckoutController extends Mage_Core_Controller_Front_Action
|
|
106 |
* Process order
|
107 |
*/
|
108 |
if ($base->status == "Pending" || $base->status == "Open") {
|
109 |
-
echo '
|
110 |
exit;
|
111 |
}
|
112 |
|
19 |
|
20 |
return $this->_redirect("checkout/onepage/success", array("_secure" => true));
|
21 |
} else {
|
22 |
+
//alternatieve keep cart functie
|
23 |
+
//getjat van pay.nl
|
24 |
+
/*
|
25 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($_GET['ec']);
|
26 |
+
|
27 |
+
$items = $order->getItemsCollection();
|
28 |
+
foreach ($items as $item) {
|
29 |
+
try {
|
30 |
+
$cart = Mage::getSingleton('checkout/cart');
|
31 |
+
|
32 |
+
$cart->addOrderItem($item);
|
33 |
+
} catch (Mage_Core_Exception $e) {
|
34 |
+
if (Mage::getSingleton('checkout/session')->getUseNotice(true)) {
|
35 |
+
Mage::getSingleton('checkout/session')->addNotice($e->getMessage());
|
36 |
+
} else {
|
37 |
+
Mage::getSingleton('checkout/session')->addError($e->getMessage());
|
38 |
+
}
|
39 |
+
$this->_redirect($pageCanceled);
|
40 |
+
} catch (Exception $e) {
|
41 |
+
Mage::getSingleton('checkout/session')->addException($e, Mage::helper('checkout')->__('Cannot add the item to shopping cart.')
|
42 |
+
);
|
43 |
+
$this->_redirect($pageCanceled);
|
44 |
+
}
|
45 |
+
}
|
46 |
+
$cart->save();
|
47 |
+
*/
|
48 |
Mage::getSingleton('core/session')->addError('Betaling niet gelukt');
|
49 |
|
50 |
return $this->_redirect('checkout/cart', array("_secure" => true));
|
94 |
*/
|
95 |
$order = Mage::getModel('sales/order')->loadByIncrementId($orderid);
|
96 |
$payment = $order->getPayment();
|
97 |
+
|
98 |
+
if(!is_object($payment))
|
99 |
+
{
|
100 |
+
echo 'incorrect payment method, probably the order could not be loaded';
|
101 |
+
exit;
|
102 |
+
}
|
103 |
+
|
104 |
|
105 |
if (method_exists($payment, 'getAdditionalInformation')) {
|
106 |
$trxid = $payment->getAdditionalInformation('trxId');
|
139 |
* Process order
|
140 |
*/
|
141 |
if ($base->status == "Pending" || $base->status == "Open") {
|
142 |
+
echo 'Payment still Open/Pending.';
|
143 |
exit;
|
144 |
}
|
145 |
|
app/code/local/Sisow/etc/config.xml
CHANGED
@@ -298,7 +298,17 @@
|
|
298 |
<sendklarnainvoice>0</sendklarnainvoice>
|
299 |
<allowspecific>1</allowspecific>
|
300 |
<specificcountry>NL</specificcountry>
|
301 |
-
</sisow_klarnaacc>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
<sisow_webshop>
|
303 |
<group>sisow</group>
|
304 |
<active>0</active>
|
298 |
<sendklarnainvoice>0</sendklarnainvoice>
|
299 |
<allowspecific>1</allowspecific>
|
300 |
<specificcountry>NL</specificcountry>
|
301 |
+
</sisow_klarnaacc>
|
302 |
+
<sisow_focum>
|
303 |
+
<group>sisow</group>
|
304 |
+
<active>0</active>
|
305 |
+
<model>sisow/methods_Focum</model>
|
306 |
+
<title>Focum AchterafBetalen</title>
|
307 |
+
<testmode>0</testmode>
|
308 |
+
<sendklarnainvoice>0</sendklarnainvoice>
|
309 |
+
<allowspecific>1</allowspecific>
|
310 |
+
<specificcountry>NL</specificcountry>
|
311 |
+
</sisow_focum>
|
312 |
<sisow_webshop>
|
313 |
<group>sisow</group>
|
314 |
<active>0</active>
|
app/code/local/Sisow/etc/system.xml
CHANGED
@@ -1754,6 +1754,150 @@
|
|
1754 |
</payment_fee_label>
|
1755 |
</fields>
|
1756 |
</sisow_klarnaacc>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1757 |
<sisow_webshop translate="label" module="sisow">
|
1758 |
<label>Sisow Webshop Giftcard</label>
|
1759 |
<sort_order>90</sort_order>
|
1754 |
</payment_fee_label>
|
1755 |
</fields>
|
1756 |
</sisow_klarnaacc>
|
1757 |
+
<sisow_focum translate="label" module="sisow">
|
1758 |
+
<label>Sisow - Focum AchterafBetalen</label>
|
1759 |
+
<sort_order>85</sort_order>
|
1760 |
+
<show_in_default>1</show_in_default>
|
1761 |
+
<show_in_website>1</show_in_website>
|
1762 |
+
<show_in_store>1</show_in_store>
|
1763 |
+
<fields>
|
1764 |
+
<active translate="label">
|
1765 |
+
<label>Enabled</label>
|
1766 |
+
<frontend_type>select</frontend_type>
|
1767 |
+
<config_path>payment/sisow_focum/active</config_path>
|
1768 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1769 |
+
<sort_order>10</sort_order>
|
1770 |
+
<show_in_default>1</show_in_default>
|
1771 |
+
<show_in_website>1</show_in_website>
|
1772 |
+
<show_in_store>1</show_in_store>
|
1773 |
+
</active>
|
1774 |
+
<title translate="label">
|
1775 |
+
<label>Title</label>
|
1776 |
+
<frontend_type>text</frontend_type>
|
1777 |
+
<config_path>payment/sisow_focum/title</config_path>
|
1778 |
+
<sort_order>20</sort_order>
|
1779 |
+
<show_in_default>1</show_in_default>
|
1780 |
+
<show_in_website>1</show_in_website>
|
1781 |
+
<show_in_store>1</show_in_store>
|
1782 |
+
</title>
|
1783 |
+
<prefix translate="label">
|
1784 |
+
<label>Prefix</label>
|
1785 |
+
<frontend_type>text</frontend_type>
|
1786 |
+
<config_path>payment/sisow_focum/prefix</config_path>
|
1787 |
+
<sort_order>35</sort_order>
|
1788 |
+
<show_in_default>1</show_in_default>
|
1789 |
+
<show_in_website>1</show_in_website>
|
1790 |
+
<show_in_store>1</show_in_store>
|
1791 |
+
</prefix>
|
1792 |
+
<sort_order translate="label">
|
1793 |
+
<label>Sort order</label>
|
1794 |
+
<config_path>payment/sisow_focum/sort_order</config_path>
|
1795 |
+
<frontend_type>text</frontend_type>
|
1796 |
+
<sort_order>50</sort_order>
|
1797 |
+
<show_in_default>1</show_in_default>
|
1798 |
+
<show_in_website>1</show_in_website>
|
1799 |
+
<show_in_store>1</show_in_store>
|
1800 |
+
</sort_order>
|
1801 |
+
<new_order_mail translate="label">
|
1802 |
+
<label>New order mail</label>
|
1803 |
+
<frontend_type>select</frontend_type>
|
1804 |
+
<config_path>payment/sisow_focum/newordermail</config_path>
|
1805 |
+
<source_model>sisow/config_newordermailMethod</source_model>
|
1806 |
+
<sort_order>55</sort_order>
|
1807 |
+
<show_in_default>1</show_in_default>
|
1808 |
+
<show_in_website>1</show_in_website>
|
1809 |
+
<show_in_store>1</show_in_store>
|
1810 |
+
</new_order_mail>
|
1811 |
+
<auto_invoice translate="label">
|
1812 |
+
<label>Auto invoice</label>
|
1813 |
+
<frontend_type>select</frontend_type>
|
1814 |
+
<config_path>payment/sisow_focum/autoinvoice</config_path>
|
1815 |
+
<source_model>sisow/config_autoinvoice</source_model>
|
1816 |
+
<sort_order>60</sort_order>
|
1817 |
+
<show_in_default>1</show_in_default>
|
1818 |
+
<show_in_website>1</show_in_website>
|
1819 |
+
<show_in_store>1</show_in_store>
|
1820 |
+
</auto_invoice>
|
1821 |
+
<min_order_total translate="label">
|
1822 |
+
<label>Minimum Order Total</label>
|
1823 |
+
<config_path>payment/sisow_focum/min_order_total</config_path>
|
1824 |
+
<frontend_type>text</frontend_type>
|
1825 |
+
<sort_order>70</sort_order>
|
1826 |
+
<show_in_default>1</show_in_default>
|
1827 |
+
<show_in_website>1</show_in_website>
|
1828 |
+
<show_in_store>1</show_in_store>
|
1829 |
+
</min_order_total>
|
1830 |
+
<max_order_total translate="label">
|
1831 |
+
<label>Maximum Order Total</label>
|
1832 |
+
<config_path>payment/sisow_focum/max_order_total</config_path>
|
1833 |
+
<frontend_type>text</frontend_type>
|
1834 |
+
<sort_order>80</sort_order>
|
1835 |
+
<show_in_default>1</show_in_default>
|
1836 |
+
<show_in_website>1</show_in_website>
|
1837 |
+
<show_in_store>1</show_in_store>
|
1838 |
+
</max_order_total>
|
1839 |
+
<allowspecific translate="label">
|
1840 |
+
<label>Payment from Applicable Countries</label>
|
1841 |
+
<frontend_type>allowspecific</frontend_type>
|
1842 |
+
<config_path>payment/sisow_focum/allowspecific</config_path>
|
1843 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
1844 |
+
<sort_order>90</sort_order>
|
1845 |
+
<show_in_default>1</show_in_default>
|
1846 |
+
<show_in_website>1</show_in_website>
|
1847 |
+
<show_in_store>1</show_in_store>
|
1848 |
+
</allowspecific>
|
1849 |
+
<specificcountry translate="label">
|
1850 |
+
<label>Payment from Specific Country</label>
|
1851 |
+
<frontend_type>multiselect</frontend_type>
|
1852 |
+
<config_path>payment/sisow_focum/specificcountry</config_path>
|
1853 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
1854 |
+
<sort_order>100</sort_order>
|
1855 |
+
<show_in_default>1</show_in_default>
|
1856 |
+
<show_in_website>1</show_in_website>
|
1857 |
+
<show_in_store>1</show_in_store>
|
1858 |
+
</specificcountry>
|
1859 |
+
<payment_fee translate="label">
|
1860 |
+
<label>Payment fee</label>
|
1861 |
+
<config_path>payment/sisow_focum/payment_fee</config_path>
|
1862 |
+
<sort_order>110</sort_order>
|
1863 |
+
<show_in_default>1</show_in_default>
|
1864 |
+
<show_in_website>1</show_in_website>
|
1865 |
+
<show_in_store>1</show_in_store>
|
1866 |
+
<comment>Payment fee</comment>
|
1867 |
+
</payment_fee>
|
1868 |
+
<payment_fee_tax translate="label">
|
1869 |
+
<label>Payment fee tax class</label>
|
1870 |
+
<frontend_type>select</frontend_type>
|
1871 |
+
<config_path>payment/sisow_focum/payment_fee_tax</config_path>
|
1872 |
+
<source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
|
1873 |
+
<sort_order>120</sort_order>
|
1874 |
+
<show_in_default>1</show_in_default>
|
1875 |
+
<show_in_store>1</show_in_store>
|
1876 |
+
<show_in_website>1</show_in_website>
|
1877 |
+
<comment>The tax class to use to calculate the payment fee tax</comment>
|
1878 |
+
</payment_fee_tax>
|
1879 |
+
<payment_fee_inc_ex translate="label">
|
1880 |
+
<label>Including/Excluding Tax</label>
|
1881 |
+
<frontend_type>select</frontend_type>
|
1882 |
+
<config_path>payment/sisow_focum/payment_fee_inc_ex</config_path>
|
1883 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1884 |
+
<sort_order>130</sort_order>
|
1885 |
+
<show_in_default>1</show_in_default>
|
1886 |
+
<show_in_website>1</show_in_website>
|
1887 |
+
<show_in_store>1</show_in_store>
|
1888 |
+
<comment>Is the entered payment fee value including or exluding tax</comment>
|
1889 |
+
</payment_fee_inc_ex>
|
1890 |
+
<payment_fee_label translate="label,comment">
|
1891 |
+
<label>Payment fee label</label>
|
1892 |
+
<config_path>payment/sisow_focum/payment_fee_label</config_path>
|
1893 |
+
<sort_order>140</sort_order>
|
1894 |
+
<show_in_default>1</show_in_default>
|
1895 |
+
<show_in_website>1</show_in_website>
|
1896 |
+
<show_in_store>1</show_in_store>
|
1897 |
+
<comment>Payment fee label to show</comment>
|
1898 |
+
</payment_fee_label>
|
1899 |
+
</fields>
|
1900 |
+
</sisow_focum>
|
1901 |
<sisow_webshop translate="label" module="sisow">
|
1902 |
<label>Sisow Webshop Giftcard</label>
|
1903 |
<sort_order>90</sort_order>
|
app/design/frontend/base/default/template/sisow/checkout/focum_form.phtml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$paymentfee = $this->getFee();
|
3 |
+
|
4 |
+
$fee = $paymentfee['incl'];
|
5 |
+
$phone = $this->getPhone();
|
6 |
+
$_code = $this->getMethodCode();
|
7 |
+
|
8 |
+
?>
|
9 |
+
|
10 |
+
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
|
11 |
+
<li class="form-alt">
|
12 |
+
<a href="https://www.achterafbetalen.nl/" target="_blank"><img src="https://www.achterafbetalen.nl/files/logo.png" alt="AchterafBetalen" width="100px"/></a>
|
13 |
+
<?php if ($fee > 0) { ?>
|
14 |
+
<br/><?php echo $this->__('The extra costs are '); ?><?php echo Mage::app()->getStore()->convertPrice($fee, true, true); ?>.<br/>
|
15 |
+
<?php } ?>
|
16 |
+
|
17 |
+
<br/>
|
18 |
+
<label for="sisow_gender"><?php echo $this->__('Salutation'); ?> <span class="required"></span></label>
|
19 |
+
<div class="input-box">
|
20 |
+
<select id="sisow_gender" class="input-text required-entry" title="Aanhef" name="payment[sisow_gender]">
|
21 |
+
<option value=""><?php echo $this->__('--Please Select--') ?></option>
|
22 |
+
<option value="F"><?php echo $this->__('Female');?></option>
|
23 |
+
<option value="M"><?php echo $this->__('Male');?></option>
|
24 |
+
</select>
|
25 |
+
</div>
|
26 |
+
<br/>
|
27 |
+
<label for="sisow_phone"><?php echo $this->__('Telephone Number');?> <span class="required"></span></label>
|
28 |
+
<div class="input-box">
|
29 |
+
<input id="sisow_phone" class="input-text required-entry" maxlength="12" title="Telefoonnummer" value="<?php echo $phone; ?>" name="payment[sisow_phone]"/>
|
30 |
+
</div>
|
31 |
+
<br/>
|
32 |
+
<label for="sisow_iban"><?php echo $this->__('IBAN');?> <span class="required"></span></label>
|
33 |
+
<div class="input-box">
|
34 |
+
<input id="sisow_iban" class="input-text required-entry" maxlength="20" title="IBAN" value="" name="payment[sisow_iban]"/>
|
35 |
+
</div>
|
36 |
+
<br/>
|
37 |
+
<label for="sisow_day"><?php echo $this->__('Date of birth');?> <span class="required"></span></label></br>
|
38 |
+
<div class="select">
|
39 |
+
<select id="sisow_day" name="payment[sisow_day]" title="sisow_day" class="year required-entry">
|
40 |
+
<option value=""><?php echo $this->__('Day');?></option>
|
41 |
+
<?php foreach($this->getDates() as $k=>$v){?>
|
42 |
+
<option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
|
43 |
+
<select>
|
44 |
+
<select id="sisow_month" name="payment[sisow_month]" title="sisow_day" class="year required-entry">
|
45 |
+
<option value=""><?php echo $this->__('Month');?></option>
|
46 |
+
<?php foreach($this->getMonths() as $k=>$v){?>
|
47 |
+
<option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
|
48 |
+
<select>
|
49 |
+
<select id="sisow_year" name="payment[sisow_year]" title="sisow_year" class="year required-entry">
|
50 |
+
<option value=""><?php echo $this->__('Year');?></option>
|
51 |
+
<?php foreach($this->getYears() as $k=>$v){?>
|
52 |
+
<option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
|
53 |
+
<select>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<br/>
|
57 |
+
<div style="text-align: right; width: 100%;">
|
58 |
+
<a target="_blank" href="https://www.sisow.nl"><img src="https://www.sisow.nl/images/betaallogos/logo_sisow_klein.png" alt="Powered by Sisow" width="100px"/></a>
|
59 |
+
</div>
|
60 |
+
<input type="hidden" id="sisow_monthly" name="payment[sisow_monthly]" value="<?php echo $monthly; ?>" />
|
61 |
+
<input type="hidden" id="sisow_pclass" name="payment[sisow_pclass]" value="<?php echo $pclass; ?>" />
|
62 |
+
</li>
|
63 |
+
</ul>
|
package.xml
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>sisowpayment</name>
|
4 |
-
<version>4.
|
5 |
-
<stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
@@ -16,11 +16,12 @@ Klarna Account
|
|
16 |
Klarna Invoice
|
17 |
MisterCash
|
18 |
Sofort</description>
|
19 |
-
<notes>
|
|
|
20 |
<authors><author><name>Sisow</name><user>auto-converted</user><email>support@sisow.nl</email></author></authors>
|
21 |
-
<date>
|
22 |
-
<time>
|
23 |
-
<contents><target name="magelocale"><dir name="nl_NL"><file name="Sisow.csv" hash="3c34bbc6892ce908fe3880bf52866b46"/></dir></target><target name="mageetc"><dir name="modules"><file name="Sisow.xml" hash="7da3fbd82a48d5428b8c723bafbb946b"/></dir></target><target name="magelocal"><dir name="Sisow"><dir name="Block"><dir name="Adminhtml"><file name="Notice.php" hash="56154d92843b3c8a205837010405923e"/></dir><dir name="Paymentfee"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="c086b64c05012dc579ee54fb6e50c5a3"/></dir></dir></dir><dir name="Checkout"><file name="Fee.php" hash="c7b7b19d5f2d2c5fbd07f355f8f57f9e"/></dir><dir name="Creditmemo"><file name="Totals.php" hash="ccfaa67f45416ab398ec55ea7356b537"/></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="a715f52568aa5f4a42a65437be3d0fb8"/></dir></dir><dir name="Order"><dir name="Totals"><file name="Fee.php" hash="2158794a5836acedc765900403649b16"/></dir></dir></dir><dir name="Paymentmethod"><file name="Creditcard.php" hash="bddf58a2a12dae02e5061b04e68345da"/><file name="Default.php" hash="b1c2947be1e0e731a5aea8757f038018"/><file name="DefaultInfo.php" hash="12bc768b15a910295c911f4790ae936a"/><file name="Ideal.php" hash="45d11ae70ca002c9c2f10431d65f388e"/><file name="IdealInfo.php" hash="f2be70b33ab781c89a25c4be6f738067"/><file name="Klarna.php" hash="8b529f2c376fd78888b91d8d73339118"/><file name="Klarnaacc.php" hash="2923d73bb1a9b8ad712d7671c6012e37"/><file name="Overboeking.php" hash="87050fba1fb782fce9e02e5c8095ef2e"/></dir><file name="Redirect.php" hash="
|
24 |
<compatible/>
|
25 |
<dependencies/>
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>sisowpayment</name>
|
4 |
+
<version>4.2.0</version>
|
5 |
+
<stability>beta</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
16 |
Klarna Invoice
|
17 |
MisterCash
|
18 |
Sofort</description>
|
19 |
+
<notes>Added: Focum AchterafBetalen
|
20 |
+
Fix: sending Ebill from backend (No mail error)</notes>
|
21 |
<authors><author><name>Sisow</name><user>auto-converted</user><email>support@sisow.nl</email></author></authors>
|
22 |
+
<date>2015-02-03</date>
|
23 |
+
<time>13:16:05</time>
|
24 |
+
<contents><target name="magelocale"><dir name="nl_NL"><file name="Sisow.csv" hash="3c34bbc6892ce908fe3880bf52866b46"/></dir></target><target name="mageetc"><dir name="modules"><file name="Sisow.xml" hash="7da3fbd82a48d5428b8c723bafbb946b"/></dir></target><target name="magelocal"><dir name="Sisow"><dir name="Block"><dir name="Adminhtml"><file name="Notice.php" hash="56154d92843b3c8a205837010405923e"/></dir><dir name="Paymentfee"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="c086b64c05012dc579ee54fb6e50c5a3"/></dir></dir></dir><dir name="Checkout"><file name="Fee.php" hash="c7b7b19d5f2d2c5fbd07f355f8f57f9e"/></dir><dir name="Creditmemo"><file name="Totals.php" hash="ccfaa67f45416ab398ec55ea7356b537"/></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="a715f52568aa5f4a42a65437be3d0fb8"/></dir></dir><dir name="Order"><dir name="Totals"><file name="Fee.php" hash="2158794a5836acedc765900403649b16"/></dir></dir></dir><dir name="Paymentmethod"><file name="Creditcard.php" hash="bddf58a2a12dae02e5061b04e68345da"/><file name="Default.php" hash="b1c2947be1e0e731a5aea8757f038018"/><file name="DefaultInfo.php" hash="12bc768b15a910295c911f4790ae936a"/><file name="Focum.php" hash="cc242ee202d45176ff1265ca445ec937"/><file name="Ideal.php" hash="45d11ae70ca002c9c2f10431d65f388e"/><file name="IdealInfo.php" hash="f2be70b33ab781c89a25c4be6f738067"/><file name="Klarna.php" hash="8b529f2c376fd78888b91d8d73339118"/><file name="Klarnaacc.php" hash="2923d73bb1a9b8ad712d7671c6012e37"/><file name="Overboeking.php" hash="87050fba1fb782fce9e02e5c8095ef2e"/></dir><file name="Redirect.php" hash="e4a758abf9f92c8a1d27fccf614339a0"/></dir><dir name="Helper"><file name="Data.php" hash="48f4a618f1778cc3c9027ab7daa15ba0"/><file name="Paymentfee.php" hash="44f51f6166d85f0d6df2348c094ba0aa"/></dir><dir name="Model"><dir name="Config"><file name="Autoinvoice.php" hash="d4edbab951b4b16e8ccab660bbee8fda"/><file name="GeneralAutoinvoice.php" hash="603d830548bf012631fa0e0f00738802"/><file name="Newordermail.php" hash="b0225e1243442e4c1df1ea4eaab72c5c"/><file name="NewordermailMethod.php" hash="41813afa9531be21163c6a4c1550b759"/></dir><dir name="Methods"><file name="Abstract.php" hash="e3574194dd5d469d7173c2738b69fbea"/><file name="Ebill.php" hash="b4e00783ca4854a4a13e2f4ed78e0e77"/><file name="Focum.php" hash="1b5cae8ea597c8078b8b29d5c8ab1ac6"/><file name="Ideal.php" hash="26275c27874cd4e1eb32b7d59540c65e"/><file name="Klarna.php" hash="46a92a6a29e51e2e152389475e77d025"/><file name="Klarnaacc.php" hash="6905ba077eab559fe4d24a864e0ed416"/><file name="Maestro.php" hash="7372b9babeb8e60e6e7de39a6a249747"/><file name="Mastercard.php" hash="f09053c2dd9581aa094063254178207f"/><file name="Mistercash.php" hash="f56cfae23c74791432cef1e50733829c"/><file name="Overboeking.php" hash="028a8cb928c8fe1fd84645a5427ceae1"/><file name="Paypalec.php" hash="8f802ac3efc8709ab17e130671b1c8dd"/><file name="Sofort.php" hash="f9ebf43bda7ffd62582c869a5ba5014b"/><file name="Visa.php" hash="0214e927261846df04892bdf2c048792"/><file name="WebshopGiftcard.php" hash="3ea06c83b6c0d1f87f1d61dcbf3a55c7"/></dir><dir name="Observer"><file name="Order.php" hash="99db52231b8fe6c80ed653e19dc6a34e"/><file name="Paymentfee.php" hash="78835217b2b6875e14da8b6630c21456"/><file name="Sendebill.php" hash="95adb35fbd55ac3c8c077cd6a54050b5"/><file name="Submit.php" hash="47aa5da33f953cf9363f05578b2850fe"/></dir><dir name="Paymentfee"><dir name="Creditmemo"><file name="Total.php" hash="2340fd22ec6597f5fad53d9faea2d9fe"/></dir><dir name="Invoice"><dir name="Pdf"><file name="Total.php" hash="cec95df39f550cd70e6eb63b16cfb627"/></dir><file name="Tax.php" hash="5fba21bc05a7ed55b3c57ccb4b2790b5"/><file name="Total.php" hash="b77c63f1173d2112056a782490968cf6"/></dir><dir name="Quote"><file name="Quote.php" hash="838ad691a2da75b942a8ef41c2815a9a"/><file name="TaxTotal.php" hash="bd7cd2a16dc3dbc8c7a3c82746a0f671"/><file name="Total.php" hash="d2c8afd1ec4c96b6215ae28766e18177"/></dir></dir><file name="Base.php" hash="a4371740ac33a2fc88384e0487ff3657"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="2768a4dfe614ad067142b8cced1ac41e"/><file name="NotifyController.php" hash="4793822e1b937191ace1f2925038082f"/></dir><dir name="etc"><file name="config.xml" hash="2caffc8e6ce7a769de21f02446a20f35"/><file name="system.xml" hash="2bcdacf0a744350ecc79e25a5d7e0ae0"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sisow"><dir name="adminhtml"><file name="notice.phtml" hash="7fa2d76678ad34eae48516fd757c30df"/></dir><dir name="checkout"><file name="default_info.phtml" hash="558581601de86afce3bd62ea50de7a4e"/><file name="ideal_info.phtml" hash="864ee0e16191ef6dca5c18522172b51c"/></dir><file name="form.phtml" hash="0dc40ad38b62218d6f947674312b7a61"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sisow"><dir name="checkout"><file name="default_form.phtml" hash="d4ce52d483e5206d8ab7cd7ff9fdd646"/><file name="default_info.phtml" hash="94eeee994f2f21dc36489f6b7824e616"/><file name="focum_form.phtml" hash="d52d5c0461e2dd6c79ed039a41c76b58"/><file name="ideal_form.phtml" hash="37f399e0cd922e70586a3be6a00f76a3"/><file name="ideal_info.phtml" hash="88e15559e2f0cca9744b4dae1a81a1ea"/><file name="klarna_form.phtml" hash="8a232f3e8f6e3bcf453298a922dd26bf"/><file name="klarnaacc_form.phtml" hash="c2e32986bbd9a95bea23b1ff8d49ef0e"/><file name="overboeking_form.phtml" hash="164e244d6df230f20f460012fc72a7d8"/></dir><dir name="paymentfee"><dir name="checkout"><file name="fee.phtml" hash="79362bab3963195ad6727d077fe87b11"/></dir></dir><file name="form.phtml" hash="8874a0713c384d1346f6ae713f2cb9bd"/><file name="formecare.phtml" hash="0de41387de5f0c8d35066c0f30e113c2"/><file name="formovb.phtml" hash="20da22a0ef4384411bf971ff133a6a2c"/></dir></dir></dir></dir></dir></target></contents>
|
25 |
<compatible/>
|
26 |
<dependencies/>
|
27 |
</package>
|