cashbill - Version 1.0.2

Version Notes

Stabilna wersja 1.0.2

Download this release

Release Info

Developer CashBill S.A.
Extension cashbill
Version 1.0.2
Comparing to
See all releases


Version 1.0.2

app/code/community/Platnosci/Cashbill/Block/Form/Cashbill.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Platnosci_Cashbill_Block_Form_Cashbill extends Mage_Payment_Block_Form
4
+ {
5
+ protected function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->setTemplate('platnosci/cashbill/form.phtml');
9
+ }
10
+
11
+ }
app/code/community/Platnosci/Cashbill/Block/Info/Cashbill.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Platnosci_Cashbill_Block_Info_Cashbill extends Mage_Payment_Block_Info
4
+ {
5
+ protected function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->setTemplate('platnosci/cashbill/info.phtml');
9
+ }
10
+ }
app/code/community/Platnosci/Cashbill/Block/Payment/Cashbill/Redirect.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Platnosci_Cashbill_Block_Payment_Cashbill_Redirect extends Mage_Core_Block_Abstract {
4
+
5
+ protected function _toHtml() {
6
+ $cashbill = Mage::getSingleton("cashbill/payment_cashbill");
7
+
8
+ $form = new Varien_Data_Form();
9
+
10
+ $form->setAction($cashbill->getPaymentURI())
11
+ ->setId('cashbill_cashbill_checkout')
12
+ ->setName('cashbill_cashbill_checkout')
13
+ ->setMethod('POST')
14
+ ->setUseContainer(true);
15
+
16
+ foreach ($cashbill->getRedirectionFormData() as $field => $value) {
17
+ $form->addField($field, 'hidden', array('name' => $field, 'value' => $value));
18
+ }
19
+
20
+ $html = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
21
+ </head><body>';
22
+ $html.= 'Zostaniesz przekierowany na stronę serwisu platniczego Cashbill';
23
+ $html.= $form->toHtml();
24
+ $html.= '<script type="text/javascript">document.getElementById("cashbill_cashbill_checkout").submit();</script>';
25
+ $html.= '</body></html>';
26
+
27
+ return $html;
28
+ }
29
+ }
app/code/community/Platnosci/Cashbill/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Platnosci_Cashbill_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
app/code/community/Platnosci/Cashbill/Model/Payment/Cashbill.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Platnosci_Cashbill_Model_Payment_Cashbill extends Mage_Payment_Model_Method_Abstract
4
+ {
5
+ protected $_code = 'platnosci_cashbill';
6
+ protected $_formBlockType = 'cashbill/form_cashbill';
7
+ protected $_infoBlockType = 'cashbill/info_cashbill';
8
+
9
+ protected $_isGateway = false;
10
+ protected $_canAuthorize = false;
11
+ protected $_canCapture = true;
12
+ protected $_canCapturePartial = false;
13
+ protected $_canRefund = false;
14
+ protected $_canVoid = false;
15
+ protected $_canUseInternal = true;
16
+ protected $_canUseCheckout = true;
17
+ protected $_canUseForMultishipping = false;
18
+ protected $_canSaveCc = false;
19
+
20
+ var $_options;
21
+
22
+ public function toOptionArray($isMultiselect=false)
23
+ {
24
+ if (is_null($this->_options)) {
25
+ foreach ($this->_channels as $key => $value) {
26
+ $this->_options[] = array(
27
+ 'label' => $value,
28
+ 'value' => $key
29
+ );
30
+ }
31
+ }
32
+ if(!$isMultiselect){
33
+ array_unshift($this->_options, array('value'=>'', 'label'=>''));
34
+ }
35
+ return $this->_options;
36
+ }
37
+
38
+
39
+
40
+ public function getText()
41
+ {
42
+ return $this->getConfigData("text");
43
+ }
44
+
45
+ public function getOrderPlaceRedirectUrl() {
46
+ return Mage::getUrl('cashbill/cashbill/redirect');
47
+ }
48
+
49
+ public function getCheckout() {
50
+ return Mage::getSingleton('checkout/session');
51
+ }
52
+
53
+ public function getRedirectionFormData(){
54
+ $order_id = $this->getCheckout()->getLastRealOrderId();
55
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
56
+ $billing = $order->getBillingAddress();
57
+ $payment = $order->getPayment()->getData();
58
+ $store = Mage::app()->getStore($this->getStoreId());
59
+
60
+ $street = join(',',$billing->getStreet());
61
+
62
+ $sign = md5($this->getShopID().$order->getBaseGrandTotal().'Zamówienie nr: '.$order_id.'PL'.$order_id.$billing->getFirstname().$billing->getLastname().$order->getCustomerEmail().$billing->getTelephone().$street.$billing->getCity().$billing->getPostcode().'Polska'.$this->getShopKey());
63
+
64
+ $redirectionFormData = array(
65
+ "service" => $this->getShopID(), //Identyfikator Punktu Płatności nadany w procesie tworzenia
66
+ "amount" => $order->getBaseGrandTotal(), //kwota transakcji
67
+ "lang" => 'PL',
68
+ "desc" => "Zamówienie nr: ".$order_id, //Opis transakcji
69
+ "userdata" => $order_id, //Dane dodatkowe - id zamówienia
70
+ "sign" => $sign, //Podpis wysyłanych danych
71
+ "forname" => $billing->getFirstname(),
72
+ "surname" => $billing->getLastname(),
73
+ "email" => $order->getCustomerEmail(),
74
+ "tel" => $billing->getTelephone(),
75
+ "street" => $street,
76
+ "city" => $billing->getCity(),
77
+ "postcode" => $billing->getPostcode(),
78
+ "country" => 'Polska',
79
+ );
80
+
81
+ return (array)@$redirectionFormData;
82
+ }
83
+
84
+ public function getShopID(){
85
+ return Mage::getStoreConfig('payment/platnosci_cashbill/shopid');
86
+ }
87
+
88
+ public function getShopKey(){
89
+ return Mage::getStoreConfig('payment/platnosci_cashbill/shopkey');
90
+ }
91
+
92
+
93
+ public function getPaymentURI(){
94
+ return 'https://pay.cashbill.pl/form/pay.php';
95
+ }
96
+
97
+
98
+
99
+ }
app/code/community/Platnosci/Cashbill/controllers/CashbillController.php ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Platnosci_Cashbill_CashbillController extends Mage_Core_Controller_Front_Action {
4
+
5
+ public function redirectAction() {
6
+ $session = Mage::getSingleton('checkout/session');
7
+
8
+ $session->setCashbillQuoteId($session->getQuoteId());
9
+
10
+ $this->getResponse()->setBody($this->getLayout()->createBlock('cashbill/payment_cashbill_redirect')->toHtml());
11
+ $session->unsQuoteId();
12
+ }
13
+
14
+
15
+
16
+
17
+ public function returnAction() {
18
+ // Dane punktu otrzymane po zakonczeniu procesu rejestracji
19
+ $service = Mage::getStoreConfig('payment/platnosci_cashbill/shopid');
20
+ $key = Mage::getStoreConfig('payment/platnosci_cashbill/shopkey');
21
+ // Funkcja sprawdzajaca poprawnosc sygnatury
22
+ $data = $_GET;
23
+
24
+ if( md5($data['service'].$data['orderid'].$data['amount'].$data['userdata'].$data['status'].$key) == $_GET['sign'] )
25
+ {$test = 1;}else{$test = 2;}
26
+
27
+ $params = array('n' => $data['userdata'], 'amount' => $data['amount']);
28
+ if( $test == 1 && $_GET['service'] == $service)
29
+ {
30
+ // prawidlowa sygnatura, w zaleznosci od statusu odpowiednia informacja dla klienta
31
+ if( strtoupper($_GET['status']) == 'OK' ) {
32
+ $this->_redirect('cashbill/cashbill/success/', $params);
33
+ }else {
34
+ $this->_redirect('cashbill/cashbill/failure', $params);
35
+ }
36
+ }else {
37
+ $session = Mage::getSingleton('checkout/session');
38
+ $session->setQuoteId($session->getCashbillQuoteId(true));
39
+ $session->addError("wystąpił inny błąd. zgłoś to administratora sklepu.");
40
+ $this->_redirect('checkout/cart');
41
+ }
42
+ }
43
+
44
+
45
+ public function serwerAction() {
46
+ // Dane punktu otrzymane po zakonczeniu procesu rejestracji
47
+ $service = Mage::getStoreConfig('payment/platnosci_cashbill/shopid');
48
+ $key = Mage::getStoreConfig('payment/platnosci_cashbill/shopkey');
49
+ // Funkcja sprawdzajaca poprawnosc sygnatury
50
+ $data = $_POST;
51
+
52
+ if( md5($data['service'].$data['orderid'].$data['amount'].$data['userdata'].$data['status'].$key) == $_POST['sign'] )
53
+ {$test = 1;}else{$test = 2;}
54
+
55
+ $params = array( 'n' => $data['userdata'],'amount'=>$data['amount']);
56
+ if( $test == 1 && $_POST['service'] == $service)
57
+ {
58
+ if( strtoupper($_POST['status']) == 'OK' ) {
59
+ $this->_redirect('cashbill/cashbill/hsuccess/', $params);
60
+ }
61
+ else {
62
+ $this->_redirect('cashbill/cashbill/herror/', $params);
63
+ }
64
+ }
65
+ else {
66
+ echo 'BLAD SYGNATURY';
67
+ }
68
+ }
69
+
70
+
71
+
72
+ public function hsuccessAction() {
73
+ $order_id = $this->getRequest()->getParam('n');
74
+
75
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
76
+
77
+ if($order->canInvoice()) {
78
+ $order->sendNewOrderEmail();
79
+ $order->addStatusHistoryComment ("Płatność w kwocie ".$this->getRequest()->getParam('amount')." zł została przyjęta przez CashBill.pl", Mage::getStoreConfig('payment/platnosci_cashbill/complete_order_status'));
80
+ $order->save();
81
+ }
82
+
83
+ $session = Mage::getSingleton('checkout/session');
84
+ $session->setQuoteId($session->getCashbillQuoteId(true));
85
+
86
+ Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save();
87
+
88
+ echo 'OK';
89
+ }
90
+
91
+ public function herrorAction()
92
+ {
93
+ $order_id = $this->getRequest()->getParam('n');
94
+
95
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
96
+
97
+ if(!$order->getId()) { return FALSE; }
98
+
99
+ $order->cancel();
100
+ $order->save();
101
+
102
+ echo 'OK';
103
+ }
104
+
105
+
106
+
107
+
108
+
109
+ public function successAction() {
110
+ $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
111
+ //$order_id = $this->getRequest()->getParam('n');
112
+
113
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
114
+ if($order->canInvoice()) {
115
+ $order->sendNewOrderEmail();
116
+ $order->addStatusHistoryComment ("Płatność w kwocie ".$this->getRequest()->getParam('amount')." zł została przyjęta przez CashBill.pl", Mage::getStoreConfig('payment/platnosci_cashbill/complete_order_status'));
117
+ $order->save();
118
+ }
119
+
120
+ $session = Mage::getSingleton('checkout/session');
121
+ $session->setQuoteId($session->getCashbillQuoteId(true));
122
+
123
+ Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save();
124
+
125
+ $this->_redirect('checkout/onepage/success');
126
+ }
127
+
128
+ public function failureAction() {
129
+ //$order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
130
+ $order_id = $this->getRequest()->getParam('n');
131
+
132
+ $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
133
+
134
+ if(!$order->getId()) { return FALSE; }
135
+
136
+ $order->cancel();
137
+ $order->save();
138
+
139
+ $session = Mage::getSingleton('checkout/session');
140
+ $session->setQuoteId($session->getCashbillQuoteId(true));
141
+ $session->addError("Płatność za pomocą serwisu Cashbill została zakończona niepowodzeniem.");
142
+
143
+ $this->_redirect('checkout/cart');
144
+ }
145
+ }
app/code/community/Platnosci/Cashbill/etc/config.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Platnosci_Cashbill>
5
+ <version>1.0.1</version>
6
+ <depends>
7
+ <Mage_Payment />
8
+ </depends>
9
+ </Platnosci_Cashbill>
10
+ </modules>
11
+ <global>
12
+ <blocks>
13
+ <cashbill>
14
+ <class>Platnosci_Cashbill_Block</class>
15
+ </cashbill>
16
+ </blocks>
17
+ <models>
18
+ <cashbill>
19
+ <class>Platnosci_Cashbill_Model</class>
20
+ </cashbill>
21
+ </models>
22
+ <helpers>
23
+ <cashbill>
24
+ <class>Platnosci_Cashbill_Helper</class>
25
+ </cashbill>
26
+ </helpers>
27
+ </global>
28
+ <frontend>
29
+ <routers>
30
+ <cashbill>
31
+ <use>standard</use>
32
+ <args>
33
+ <module>Platnosci_Cashbill</module>
34
+ <frontName>cashbill</frontName>
35
+ </args>
36
+ </cashbill>
37
+ </routers>
38
+ </frontend>
39
+ <default>
40
+ <payment>
41
+ <platnosci_cashbill>
42
+ <active>0</active>
43
+ <model>cashbill/payment_cashbill</model>
44
+ <order_status>1</order_status>
45
+ <title>Płatności Cashbill</title>
46
+ <text>Po złożeniu zamówienia zostaniesz przeniesiony na stronę serwisu Cashbill w celu dokonania płatności.</text>
47
+ <min_order_total>0</min_order_total>
48
+ <max_order_total>0</max_order_total>
49
+ <commission>0</commission>
50
+ </platnosci_cashbill>
51
+ </payment>
52
+ </default>
53
+ </config>
app/code/community/Platnosci/Cashbill/etc/system.xml ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <payment>
5
+ <groups>
6
+ <platnosci_cashbill translate="label">
7
+ <label>Płatności Internetowe CashBill</label>
8
+ <sort_order>1</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>0</show_in_store>
12
+ <comment>
13
+ <![CDATA[
14
+ <script>
15
+
16
+ var baseUrl = location.href.split('admin')[0].replace(/index\.php\//,'') || '<adres_Twojego_sklepu>';
17
+
18
+ </script>
19
+ <div>
20
+ <lable><strong>Instalacja</strong></lable>
21
+ <p>Poniższe dane wprowadz w swoim panelu na stronie <a href="http://panel.cashbill.pl/">Panel CashBill</a></p>
22
+ </div>
23
+
24
+ <div style="margin-top:10px;">
25
+ <lable>Adres powortu do przeglądarki : </lable>
26
+ <input type="text" size="50" style="margin-left:5px;" id="backurl" class="input-text" readonly>
27
+ </div>
28
+ <div style="margin-top:10px;">
29
+ <lable>Adres serwerowego potwierdzenia : </lable>
30
+ <input type="text" size="50" style="margin-left:5px;" id="serverurl" class="input-text" value="Płatności Cashbill" readonly>
31
+ </div>
32
+ <div>
33
+ <p><a href="" id="instrukcja" target="_blank"><img id="pdf-icon" src="" /> Instrukcja Instalacji</a></p>
34
+ </div>
35
+ <div style="margin-top:20px;"><strong>Panel Administracyjny Modułu</strong></div>
36
+ <script>
37
+ document.getElementById("instrukcja").href = baseUrl+"/app/design/adminhtml/default/default/template/platnosci/cashbill/web/instrukcja.pdf";
38
+ document.getElementById("pdf-icon").src = baseUrl+"/app/design/adminhtml/default/default/template/platnosci/cashbill/web/pdf-icon.png";
39
+ document.getElementById("backurl").value = baseUrl+"/index.php/cashbill/cashbill/return";
40
+ document.getElementById("serverurl").value = baseUrl+"/index.php/cashbill/cashbill/serwer";
41
+ </script>
42
+ ]]>
43
+ </comment>
44
+ <fields>
45
+ <active translate="label">
46
+ <label>Włączony</label>
47
+ <frontend_type>select</frontend_type>
48
+ <source_model>adminhtml/system_config_source_yesno</source_model>
49
+ <sort_order>1</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>0</show_in_store>
53
+ </active>
54
+ <order_status translate="label">
55
+ <label>Status nowego zamówienia</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_order_status</source_model>
58
+ <sort_order>4</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>0</show_in_store>
62
+ </order_status>
63
+ <complete_order_status translate="label">
64
+ <label>Status zamówienia po odebraniu płatności</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_order_status</source_model>
67
+ <sort_order>5</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>0</show_in_store>
71
+ </complete_order_status>
72
+ <title translate="label">
73
+ <label>Tytuł</label>
74
+ <frontend_type>text</frontend_type>
75
+ <sort_order>2</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>0</show_in_store>
79
+ </title>
80
+ <text translate="label">
81
+ <label>Opis</label>
82
+ <frontend_type>textarea</frontend_type>
83
+ <sort_order>3</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>0</show_in_store>
87
+ </text>
88
+ <shopid translate="label">
89
+ <label>Identyfikator Punktu Płatności :</label>
90
+ <frontend_type>text</frontend_type>
91
+ <sort_order>6</sort_order>
92
+ <show_in_default>1</show_in_default>
93
+ <show_in_website>1</show_in_website>
94
+ <show_in_store>0</show_in_store>
95
+ </shopid>
96
+ <shopkey translate="label">
97
+ <label>Klucz Punktu Płatności :</label>
98
+ <frontend_type>text</frontend_type>
99
+ <sort_order>7</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>0</show_in_store>
103
+ </shopkey>
104
+ <min_order_total translate="label">
105
+ <label>Minimalna kwota zamówienia</label>
106
+ <frontend_type>text</frontend_type>
107
+ <sort_order>9</sort_order>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>0</show_in_store>
111
+ </min_order_total>
112
+ <max_order_total translate="label">
113
+ <label>Maksymalna kwota zamówienia</label>
114
+ <frontend_type>text</frontend_type>
115
+ <sort_order>10</sort_order>
116
+ <show_in_default>1</show_in_default>
117
+ <show_in_website>1</show_in_website>
118
+ <show_in_store>0</show_in_store>
119
+ </max_order_total>
120
+ <sort_order translate="label">
121
+ <label>Pozycja w płatnościach</label>
122
+ <frontend_type>text</frontend_type>
123
+ <sort_order>100</sort_order>
124
+ <show_in_default>1</show_in_default>
125
+ <show_in_website>1</show_in_website>
126
+ <show_in_store>0</show_in_store>
127
+ </sort_order>
128
+ </fields>
129
+ </platnosci_cashbill>
130
+ </groups>
131
+ </payment>
132
+ </sections>
133
+ </config>
app/design/adminhtml/default/default/template/platnosci/cashbill/form.phtml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <fieldset class="form-list">
2
+ <ul id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
3
+ <li>
4
+ <?php echo $this->getMethod()->getText(); ?>
5
+ </li>
6
+
7
+ </ul>
8
+
9
+ </fieldset>
app/design/adminhtml/default/default/template/platnosci/cashbill/info.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
app/design/adminhtml/default/default/template/platnosci/cashbill/web/.htaccess ADDED
@@ -0,0 +1 @@
 
1
+ allow from all
app/design/adminhtml/default/default/template/platnosci/cashbill/web/instrukcja.pdf ADDED
Binary file
app/design/adminhtml/default/default/template/platnosci/cashbill/web/pdf-icon.png ADDED
Binary file
app/design/frontend/default/default/template/platnosci/cashbill/form.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <fieldset class="form-list">
2
+ <ul id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
3
+ <li>
4
+ <?php echo $this->getMethod()->getText(); ?>
5
+ </li>
6
+ </ul>
7
+
8
+ </fieldset>
app/design/frontend/default/default/template/platnosci/cashbill/info.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
app/etc/modules/Platnosci_Cashbill.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Platnosci_Cashbill>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Platnosci_Cashbill>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>cashbill</name>
4
+ <version>1.0.2</version>
5
+ <stability>stable</stability>
6
+ <license>MIT License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Modu&#x142; p&#x142;atno&#x15B;ci CashBill</summary>
10
+ <description>Dzi&#x119;ki modu&#x142;owi mo&#x17C;esz zaimplementowa&#x107; proste p&#x142;atno&#x15B;ic internetowe z wykorzystanie cashbill.pl</description>
11
+ <notes>Stabilna wersja 1.0.2</notes>
12
+ <authors><author><name>CashBill S.A.</name><user>cashbill</user><email>lukasz.firek@cashbill.pl</email></author></authors>
13
+ <date>2014-12-08</date>
14
+ <time>13:02:04</time>
15
+ <contents><target name="magecommunity"><dir name="Platnosci"><dir name="Cashbill"><dir name="Block"><dir name="Form"><file name="Cashbill.php" hash="87f212bc545259d8f36490050ea52184"/></dir><dir name="Info"><file name="Cashbill.php" hash="3186b1b56e743cba5cfbc95741af3e3e"/></dir><dir name="Payment"><dir name="Cashbill"><file name="Redirect.php" hash="9cf18bc23bb84f6625eee6dfd509bae7"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a379f479daa6b5ae48060c2c8338a049"/></dir><dir name="Model"><dir name="Payment"><file name="Cashbill.php" hash="09cf3f239ef1113ba142bc0f2158f379"/></dir></dir><dir name="controllers"><file name="CashbillController.php" hash="515a6550121cb980ddcfc2be31b876d7"/></dir><dir name="etc"><file name="config.xml" hash="8d7ff4156ffd12be31777c6232a730c0"/><file name="system.xml" hash="dfeb682785ef87672f6e54b5b36c1be0"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="13b8f868d56c95d1965e86775449c394"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/><dir name="web"><file name="instrukcja.pdf" hash="174d1b2681202d5bff27eb043f84602e"/><file name="pdf-icon.png" hash="28cdd201144351e73035a9a0e87873c0"/><file name=".htaccess" hash="b203ef4b9ebf35472826208edae9b525"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="ca71e26277dec846d2d2df101faf2b0e"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Platnosci_Cashbill.xml" hash="2f740e398944f2422f4504b69d8a32bb"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>