PayZippy_Payment_Gateway - Version 0.1.2

Version Notes

Following bug fixed :-

Fixed security issues
Fixed return url
Fixed new order status

Download this release

Release Info

Developer Cueblocks
Extension PayZippy_Payment_Gateway
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/community/FlipKart/PayZippy/Block/Redirect.php CHANGED
@@ -40,7 +40,7 @@ class FlipKart_PayZippy_Block_Redirect extends Mage_Checkout_Block_Onepage_Abstr
40
  $params['ui_mode'] = "REDIRECT";
41
  $params['hash_method'] = "MD5";
42
  $params['merchant_key_id'] = Mage::helper('payzippy')->getConfigData('merchant_key_id');
43
- $params['callback_url'] = Mage::getBaseUrl().'payzippy/payment/response';
44
  $params['payment_method'] = $payment_data['payzippy_payment_method'];
45
  if(!empty ($payment_data['payzippy_bank_name'])):
46
  $params['bank_name'] = $payment_data['payzippy_bank_name'];
40
  $params['ui_mode'] = "REDIRECT";
41
  $params['hash_method'] = "MD5";
42
  $params['merchant_key_id'] = Mage::helper('payzippy')->getConfigData('merchant_key_id');
43
+ $params['callback_url'] = Mage::getUrl('payzippy/payment/response',array('_secure'=>true));
44
  $params['payment_method'] = $payment_data['payzippy_payment_method'];
45
  if(!empty ($payment_data['payzippy_bank_name'])):
46
  $params['bank_name'] = $payment_data['payzippy_bank_name'];
app/code/community/FlipKart/PayZippy/controllers/PaymentController.php CHANGED
@@ -44,6 +44,7 @@ class FlipKart_PayZippy_PaymentController extends Mage_Core_Controller_Front_Act
44
  $is_international = $response['is_international'];
45
  $fraud_action = $response['fraud_action'];
46
  $allow = array('SUCCESS','INITIATED','PENDING');
 
47
  $comment = 'PayZippy Transaction Id : '.$payzippy_transid.'<br/>'.'Payment Method : '.$payment_method.'<br/>'.'Transaction Status : '.$trans_status.'<br/>'.'Transaction Response Code : '.$validated.'<br/>'.'Transaction Response Message : '.$message.'<br/>'.'Is_International : '.$is_international.'<br/>'.'Fraud Action : '.$fraud_action;
48
  unset($response['hash']);
49
  $hash_generated = Mage::helper('payzippy')->getHash($response,Mage::helper('payzippy')->getConfigData('secret_key'));
@@ -52,7 +53,11 @@ class FlipKart_PayZippy_PaymentController extends Mage_Core_Controller_Front_Act
52
  // Payment was successful, so update the order's state, send order email and move to the success page
53
  $order = Mage::getSingleton('sales/order');
54
  $order->loadByIncrementId($orderId);
55
- $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $comment);
 
 
 
 
56
 
57
  $order->sendNewOrderEmail();
58
  $order->setEmailSent(true);
44
  $is_international = $response['is_international'];
45
  $fraud_action = $response['fraud_action'];
46
  $allow = array('SUCCESS','INITIATED','PENDING');
47
+ $configured_order_status = Mage::helper('payzippy')->getConfigData('order_status');
48
  $comment = 'PayZippy Transaction Id : '.$payzippy_transid.'<br/>'.'Payment Method : '.$payment_method.'<br/>'.'Transaction Status : '.$trans_status.'<br/>'.'Transaction Response Code : '.$validated.'<br/>'.'Transaction Response Message : '.$message.'<br/>'.'Is_International : '.$is_international.'<br/>'.'Fraud Action : '.$fraud_action;
49
  unset($response['hash']);
50
  $hash_generated = Mage::helper('payzippy')->getHash($response,Mage::helper('payzippy')->getConfigData('secret_key'));
53
  // Payment was successful, so update the order's state, send order email and move to the success page
54
  $order = Mage::getSingleton('sales/order');
55
  $order->loadByIncrementId($orderId);
56
+ $order_status = Mage_Sales_Model_Order::STATE_PROCESSING;
57
+ if($configured_order_status == 'pending') {
58
+ $order_status = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
59
+ }
60
+ $order->setState($order_status, true, $comment);
61
 
62
  $order->sendNewOrderEmail();
63
  $order->setEmailSent(true);
app/code/community/FlipKart/PayZippy/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <FlipKart_PayZippy>
5
- <version>0.1.0</version>
6
  </FlipKart_PayZippy>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <FlipKart_PayZippy>
5
+ <version>0.1.2</version>
6
  </FlipKart_PayZippy>
7
  </modules>
8
  <global>
app/code/community/FlipKart/PayZippy/etc/config.xml~ ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <FlipKart_PayZippy>
5
+ <version>0.1.0</version>
6
+ </FlipKart_PayZippy>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <payzippy>
11
+ <class>FlipKart_PayZippy_Model</class>
12
+ </payzippy>
13
+ </models>
14
+ <helpers>
15
+ <payzippy>
16
+ <class>FlipKart_PayZippy_Helper</class>
17
+ </payzippy>
18
+ </helpers>
19
+ <blocks>
20
+ <payzippy>
21
+ <class>FlipKart_PayZippy_Block</class>
22
+ </payzippy>
23
+ </blocks>
24
+ <fieldsets>
25
+ <sales_convert_quote_payment>
26
+ <payzippy_payment_method>
27
+ <to_order_payment>*</to_order_payment>
28
+ </payzippy_payment_method>
29
+ <payzippy_bank_name>
30
+ <to_order_payment>*</to_order_payment>
31
+ </payzippy_bank_name>
32
+ <payzippy_emi_months>
33
+ <to_order_payment>*</to_order_payment>
34
+ </payzippy_emi_months>
35
+ </sales_convert_quote_payment>
36
+ </fieldsets>
37
+ <resources>
38
+ <payzippy_setup>
39
+ <setup>
40
+ <module>FlipKart_PayZippy</module>
41
+ <class>FlipKart_PayZippy_Model_Mysql4_Setup</class>
42
+ </setup>
43
+ </payzippy_setup>
44
+ </resources>
45
+ </global>
46
+ <default>
47
+ <payment>
48
+ <payzippy>
49
+ <model>payzippy/standard</model>
50
+ <active>0</active>
51
+ <order_status>pending</order_status>
52
+ <title>Payzippy</title>
53
+ <payment_action>sale</payment_action>
54
+ <allowspecific>0</allowspecific>
55
+ <sort_order>1</sort_order>
56
+ </payzippy>
57
+ </payment>
58
+ </default>
59
+ <frontend>
60
+ <routers>
61
+ <payzippy>
62
+ <use>standard</use>
63
+ <args>
64
+ <module>FlipKart_PayZippy</module>
65
+ <frontName>payzippy</frontName>
66
+ </args>
67
+ </payzippy>
68
+ </routers>
69
+ </frontend>
70
+ </config>
app/code/community/FlipKart/PayZippy/etc/system.xml CHANGED
@@ -124,7 +124,7 @@
124
  <order_status translate="label">
125
  <label>New Order Status</label>
126
  <frontend_type>select</frontend_type>
127
- <source_model>adminhtml/system_config_source_order_status</source_model>
128
  <sort_order>50</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
124
  <order_status translate="label">
125
  <label>New Order Status</label>
126
  <frontend_type>select</frontend_type>
127
+ <source_model>adminhtml/system_config_source_order_status_newprocessing</source_model>
128
  <sort_order>50</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PayZippy_Payment_Gateway</name>
4
- <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -16,11 +16,15 @@ Great Merchant Support - We bring Flipkart's customer obsessed service and learn
16
  100% Secure - PayZippy has undergone stringent security audits (including PCI DSS) by industry experts. PayZippy's real time risk engine analyses every transaction across 50+ risk parameters and notifies you about suspected fraudulent transactions by email/sms.&#xD;
17
  Simple Transparent Pricing - No setup fee, no annual maintenance fee, no hidden charges. Pay less as you grow.&#xD;
18
  If you have any queries or require more information about our service offering, feel free to reach out to us at contactus@payzippy.com.</description>
19
- <notes>Fixed security issues </notes>
 
 
 
 
20
  <authors><author><name>Cueblocks</name><user>Ravinder</user><email>ravinder.singh@cueblocks.com</email></author></authors>
21
- <date>2013-10-21</date>
22
- <time>06:47:54</time>
23
- <contents><target name="magecommunity"><dir name="FlipKart"><dir name="PayZippy"><dir name="Block"><file name="Form.php" hash="639321ea25419f962538ac89381d2b51"/><file name="Info.php" hash="d7b2736958e1843501b6b2751329378b"/><file name="Redirect.php" hash="71dbcd1edf529cba68db40fd3dc204fa"/></dir><dir name="Helper"><file name="Data.php" hash="1b17cddfc16a49371c7fa804f3326660"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="8adc2ac49e33c5f85daeb4c107387e14"/></dir><file name="Standard.php" hash="cd14e0d14457ac5f95a55a99e605a56c"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Payment"><dir name="Bank"><file name="Names.php" hash="6740c20c072b0ce964203e84789cb9e7"/></dir><file name="Methods.php" hash="a32152f6f96fa082eecb3c186b085963"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="f9e358b67d8c1ba31152396c64126eda"/></dir><dir name="etc"><file name="config.xml" hash="bc09910bc88a8db0d576ab3a31771254"/><file name="system.xml" hash="cea2262317135a8d712f9ea37c47faa0"/></dir><dir name="sql"><dir name="payzippy_setup"><file name="mysql4-install-0.1.0.php" hash="c69266c1d23fe4d66405835ea60c932e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payzippy"><file name="form.phtml" hash="05dd9f7b97f98f58e3cbf4fd9d589cc4"/><file name="redirect.phtml" hash="0e2722a6012d1e6859d9275d4b09683d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FlipKart_PayZippy.xml" hash="6a9b3027607fb0c3212e9a829d61fa15"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PayZippy_Payment_Gateway</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
16
  100% Secure - PayZippy has undergone stringent security audits (including PCI DSS) by industry experts. PayZippy's real time risk engine analyses every transaction across 50+ risk parameters and notifies you about suspected fraudulent transactions by email/sms.&#xD;
17
  Simple Transparent Pricing - No setup fee, no annual maintenance fee, no hidden charges. Pay less as you grow.&#xD;
18
  If you have any queries or require more information about our service offering, feel free to reach out to us at contactus@payzippy.com.</description>
19
+ <notes>Following bug fixed :-&#xD;
20
+ &#xD;
21
+ Fixed security issues &#xD;
22
+ Fixed return url &#xD;
23
+ Fixed new order status</notes>
24
  <authors><author><name>Cueblocks</name><user>Ravinder</user><email>ravinder.singh@cueblocks.com</email></author></authors>
25
+ <date>2013-12-09</date>
26
+ <time>11:01:20</time>
27
+ <contents><target name="magecommunity"><dir name="FlipKart"><dir name="PayZippy"><dir name="Block"><file name="Form.php" hash="639321ea25419f962538ac89381d2b51"/><file name="Info.php" hash="d7b2736958e1843501b6b2751329378b"/><file name="Redirect.php" hash="8bb8767923c5eef2cd9177fab1db6b59"/></dir><dir name="Helper"><file name="Data.php" hash="1b17cddfc16a49371c7fa804f3326660"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="8adc2ac49e33c5f85daeb4c107387e14"/></dir><file name="Standard.php" hash="cd14e0d14457ac5f95a55a99e605a56c"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Payment"><dir name="Bank"><file name="Names.php" hash="6740c20c072b0ce964203e84789cb9e7"/></dir><file name="Methods.php" hash="a32152f6f96fa082eecb3c186b085963"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="4eabccff8b6d683b213f03f4ce42724c"/></dir><dir name="etc"><file name="config.xml" hash="2c468269d5892a95c75fd92c2a36c6a3"/><file name="config.xml~" hash="bc09910bc88a8db0d576ab3a31771254"/><file name="system.xml" hash="ec1be10269656f92c0d5fb27f3a67877"/></dir><dir name="sql"><dir name="payzippy_setup"><file name="mysql4-install-0.1.0.php" hash="c69266c1d23fe4d66405835ea60c932e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payzippy"><file name="form.phtml" hash="05dd9f7b97f98f58e3cbf4fd9d589cc4"/><file name="redirect.phtml" hash="0e2722a6012d1e6859d9275d4b09683d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FlipKart_PayZippy.xml" hash="6a9b3027607fb0c3212e9a829d61fa15"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>