Zazma_Payment - Version 1.0.1

Version Notes

Zazma payment option

Download this release

Release Info

Developer Belvg
Extension Zazma_Payment
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Belvg/Zazma/Model/Api.php CHANGED
@@ -71,8 +71,8 @@ class Belvg_Zazma_Model_Api
71
 
72
  $ch = curl_init();
73
 
74
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
75
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
76
 
77
  if ($method == 'POST') {
78
  curl_setopt($ch, CURLOPT_POST, TRUE);
71
 
72
  $ch = curl_init();
73
 
74
+ //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
75
+ //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
76
 
77
  if ($method == 'POST') {
78
  curl_setopt($ch, CURLOPT_POST, TRUE);
app/code/community/Belvg/Zazma/Model/Payment/Zazma.php CHANGED
@@ -101,10 +101,17 @@ class Belvg_Zazma_Model_Payment_Zazma extends Mage_Payment_Model_Method_Abstract
101
  $data['subTotal'] = $quote->getSubtotalWithDiscount();
102
  $data['address'] = implode(',', $quote->getBillingAddress()->getStreet());
103
  $data['city'] = $quote->getBillingAddress()->getCity();
 
 
 
 
 
 
 
104
  $data['zip'] = $quote->getBillingAddress()->getPostcode();
105
  $data['companyName'] = $quote->getBillingAddress()->getCompany();
106
  $data['telephone'] = $quote->getBillingAddress()->getTelephone();
107
-
108
  $api = Mage::getModel('zazma/api_request');
109
  /* @var $api Belvg_Zazma_Model_Api_Request */
110
 
101
  $data['subTotal'] = $quote->getSubtotalWithDiscount();
102
  $data['address'] = implode(',', $quote->getBillingAddress()->getStreet());
103
  $data['city'] = $quote->getBillingAddress()->getCity();
104
+ $data['state'] = 'n/a';
105
+
106
+ if ($regionId = $quote->getBillingAddress()->getRegionId()) {
107
+ $regionModel = Mage::getModel('directory/region')->load($regionId);
108
+ $data['state'] = $regionModel->getCode();
109
+ }
110
+
111
  $data['zip'] = $quote->getBillingAddress()->getPostcode();
112
  $data['companyName'] = $quote->getBillingAddress()->getCompany();
113
  $data['telephone'] = $quote->getBillingAddress()->getTelephone();
114
+
115
  $api = Mage::getModel('zazma/api_request');
116
  /* @var $api Belvg_Zazma_Model_Api_Request */
117
 
app/code/community/Belvg/Zazma/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Bluesnap_Buynow>
6
- <version>1.0.0</version>
7
  </Bluesnap_Buynow>
8
  </modules>
9
  <global>
3
  <config>
4
  <modules>
5
  <Bluesnap_Buynow>
6
+ <version>1.0.1</version>
7
  </Bluesnap_Buynow>
8
  </modules>
9
  <global>
app/etc/modules/Belvg_Zazma.xml CHANGED
@@ -8,7 +8,7 @@
8
  <depends>
9
  <Mage_Checkout/>
10
  </depends>
11
- <version>1.0.0</version>
12
  </Belvg_Zazma>
13
  </modules>
14
  </config>
8
  <depends>
9
  <Mage_Checkout/>
10
  </depends>
11
+ <version>1.0.1</version>
12
  </Belvg_Zazma>
13
  </modules>
14
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zazma_Payment</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Zazma payment option</description>
11
  <notes>Zazma payment option</notes>
12
  <authors><author><name>BelVG LLC</name><user>belvg</user><email>store@belvg.com</email></author></authors>
13
- <date>2014-04-30</date>
14
- <time>10:00:50</time>
15
- <contents><target name="magecommunity"><dir name="Belvg"><dir name="Zazma"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Renderer.php" hash="a92fd92df6740ab0ab383f8893938942"/></dir></dir></dir></dir></dir><dir name="Payment"><dir name="Form"><file name="Logo.php" hash="04224064be5e2d8356cda2f48d7b9fe1"/><file name="Zazma.php" hash="503ee28c3d7cc6508b68e55bde93aa41"/></dir></dir></dir><file name="Exception.php" hash="5ac007031082530021684f295764d034"/><dir name="Helper"><file name="Config.php" hash="4020e0fcb4e607eee17087914116ef0d"/><file name="Data.php" hash="e035466620f1a622392e2177bbefdf77"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="2ce21a07aefa205a0db1fb6503780746"/></dir><file name="Api.php" hash="82233e7f3ba4c7b5a369f8bc78a34373"/><dir name="Payment"><file name="Zazma.php" hash="27290de66c90a9aa4470ade00a054792"/></dir></dir><dir name="controllers"><file name="CheckoutController.php" hash="2e86baf24d12e172011b9916846b1cb9"/></dir><dir name="etc"><file name="config.xml" hash="8351a2e3f2b5e8761fc490a570d459f6"/><file name="system.xml" hash="e288302c755eef6ad996881c87a094ca"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="belvg"><dir name="zazma"><dir name="payment"><dir name="form"><file name="logo.phtml" hash="eea3f947528ef5a4aee904606bcde62b"/><file name="zazma.phtml" hash="2c71b6d614a7c20e3be111eecba1d03e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Belvg_Zazma.xml" hash="5b81891b74606731b8487cb98ee74ecf"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zazma_Payment</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
10
  <description>Zazma payment option</description>
11
  <notes>Zazma payment option</notes>
12
  <authors><author><name>BelVG LLC</name><user>belvg</user><email>store@belvg.com</email></author></authors>
13
+ <date>2014-05-14</date>
14
+ <time>13:30:15</time>
15
+ <contents><target name="magecommunity"><dir name="Belvg"><dir name="Zazma"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Renderer.php" hash="a92fd92df6740ab0ab383f8893938942"/></dir></dir></dir></dir></dir><dir name="Payment"><dir name="Form"><file name="Logo.php" hash="04224064be5e2d8356cda2f48d7b9fe1"/><file name="Zazma.php" hash="503ee28c3d7cc6508b68e55bde93aa41"/></dir></dir></dir><file name="Exception.php" hash="5ac007031082530021684f295764d034"/><dir name="Helper"><file name="Config.php" hash="4020e0fcb4e607eee17087914116ef0d"/><file name="Data.php" hash="e035466620f1a622392e2177bbefdf77"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="2ce21a07aefa205a0db1fb6503780746"/></dir><file name="Api.php" hash="ac1e900591dfd054d59669439add48b6"/><dir name="Payment"><file name="Zazma.php" hash="cf2478fd557b33376dd6b749a82c3c71"/></dir></dir><dir name="controllers"><file name="CheckoutController.php" hash="2e86baf24d12e172011b9916846b1cb9"/></dir><dir name="etc"><file name="config.xml" hash="311a652a51a9846ea567dd47996acece"/><file name="system.xml" hash="e288302c755eef6ad996881c87a094ca"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="belvg"><dir name="zazma"><dir name="payment"><dir name="form"><file name="logo.phtml" hash="eea3f947528ef5a4aee904606bcde62b"/><file name="zazma.phtml" hash="2c71b6d614a7c20e3be111eecba1d03e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Belvg_Zazma.xml" hash="0ccf4a5996b76e3812ebf20002c59555"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>