kash_gateway - Version 0.1.6

Version Notes

v0.1.6 - Initial Release

Download this release

Release Info

Developer Kash Corp.
Extension kash_gateway
Version 0.1.6
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.6

app/code/local/Kash/Gateway/Model/Api/Bb.php CHANGED
@@ -135,6 +135,16 @@ class Kash_Gateway_Model_Api_Bb extends Kash_Gateway_Model_Api_Abstract
135
  $request = $this->_importAddresses($request);
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
138
  $date = Zend_Date::now();
139
  $request['x_timestamp'] = $date->getIso();
140
  $request['x_signature'] = $this->getSignature($request, $this->getHmacKey());
135
  $request = $this->_importAddresses($request);
136
  }
137
 
138
+ //make sure we have the email
139
+ if (empty($request['x_customer_email'])) {
140
+ try {
141
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
142
+ $request['x_customer_email'] = $customer->getEmail();
143
+ } catch (Exception $e) {
144
+ Mage::log($e->getMessage());
145
+ }
146
+ }
147
+
148
  $date = Zend_Date::now();
149
  $request['x_timestamp'] = $date->getIso();
150
  $request['x_signature'] = $this->getSignature($request, $this->getHmacKey());
app/code/local/Kash/Gateway/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Kash_Gateway>
5
- <version>0.1.4</version>
6
  </Kash_Gateway>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Kash_Gateway>
5
+ <version>0.1.6</version>
6
  </Kash_Gateway>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,22 +1,28 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kash_gateway</name>
4
- <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license>MITL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Payment gateway that allows customers in the US to make payment via Direct Debit or Credit Card for just 0.5%.</summary>
10
- <description>Kash (http://www.withkash.com) allows you to accept payments for just 0.5%!&#xD;
11
- &#xD;
12
- Kash does this by offering customers the option to pay using their bank account. For customers that don't want to use their bank account to pay, they'll have the option of using credit card instead. You can choose to either charge the credit card processing fee to the customer, or pay for the fee yourself like you do currently.&#xD;
13
- &#xD;
14
- You will need a Kash account in order to use this gateway. Please contact info@withkash.com for any questions.</description>
15
- <notes>v0.1.4 - Initial Release</notes>
16
- <authors><author><name>Kash Corp.</name><user>kash_corp</user><email>info@withkash.com</email></author></authors>
17
- <date>2015-12-02</date>
18
- <time>20:42:30</time>
19
- <contents><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="kash"><file name="lightwindow.css" hash="1addd9e2971e76af24c5eadf67fafc60"/><file name="start.css" hash="d310d178769035d366ebb2caff9bd4a3"/><file name="._lightwindow.css" hash="6bac7309b1e370cf137d882ba90d6510"/></dir></dir><dir name="js"><dir name="kash"><file name="lightwindow.js" hash="a63e1ae37ef7f727c97ffa0f4f0292d7"/><file name="._lightwindow.js" hash="6bac7309b1e370cf137d882ba90d6510"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kash_Gateway.xml" hash="03365c54da611a023ea2a12c6404c455"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="kash"><file name="gateway.xml" hash="62ce90320a5d09cc8334e512c3cda3b3"/></dir></dir><dir name="template"><dir name="kash"><file name="container.phtml" hash="9dafeab90d16b221ab8684990ef62ec3"/><file name="form.phtml" hash="0b4b05f427474b08d1c52cfc09fc3485"/><file name="js.phtml" hash="3a1b1a96fd25b4035f41dbe95633f229"/><dir name="payment"><file name="mark.phtml" hash="96ac85ef2f73ec0953dee53cd3d7d0a7"/><file name="redirect.phtml" hash="9cd530bec26cc5f76ab01cfb57095c32"/><dir name="review"><file name="details.phtml" hash="ff2ad65893e66920a4cc8b098dc397c1"/></dir><file name="review.phtml" hash="ef1d435a2bc0e9daff56594a715bed1a"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="kash"><dir name="info"><file name="default.phtml" hash="79bcf1003e40c03ec35c383ec4ca5236"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Kash"><dir name="Gateway"><dir name="Block"><dir name="Adminhtml"><file name="Info.php" hash="186ac575a69755543d649d2174f43474"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="757f5028ff98d3c375cf3345675d55b7"/></dir></dir></dir><dir name="Form"><file name="Bb.php" hash="2516cb64469800cfc450710250317d72"/></dir><dir name="Review"><file name="Details.php" hash="9a077c6688f913bd4f9fee74fad68b7e"/></dir><file name="Review.php" hash="a2a24914d577262188c491898c77307e"/></dir><dir name="Helper"><file name="Checkout.php" hash="89863d74391a81e7336073a8c9634ce8"/><file name="Data.php" hash="cc0eb77c1be47e1d4e846033cc2aed9a"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="99ed019c3e8e13caf90fa248e608c9ea"/><file name="Bb.php" hash="f1605310d4042b4704577fe2925c2a86"/></dir><file name="Cart.php" hash="ced06fca31abf3fbe20e3e2eb430cfea"/><file name="Checkout.php" hash="bed98494d4bb1d93b6e6758555d98450"/><file name="Config.php" hash="5299275ecc589f56c9bc9c9123e39405"/><dir name="Method"><file name="Bb.php" hash="6cd0683fa597d31d830ae7787b0284cd"/></dir><file name="Observer.php" hash="eede09fb15543e8a535820612104e520"/><file name="Session.php" hash="1778fbe493d2ceb81d8a20b58a21ce3c"/></dir><dir name="controllers"><file name="BbController.php" hash="3ab8fcfabbc52474eb7f161fc91c5986"/></dir><dir name="data"><dir name="kash_gateway_setup"><file name="data-install-0.0.1.php" hash="5fe91e15bc5e6269eadcc50f8991250a"/><file name="data-upgrade-0.0.1-0.0.2.php" hash="632331f77e2238438e1bddfe4c2b82bf"/></dir></dir><dir name="etc"><file name="config.xml" hash="9538e1037a44f4280726f537f0a9d3e5"/><file name="system.xml" hash="3667ceed76bc0a905af96e7b4adbf2b0"/></dir><dir name="sql"><dir name="kash_gateway_setup"><file name="install-0.0.1.php" hash="9ecb52ba48345cdbee9ce0fd92d2aff9"/></dir></dir></dir></dir></target></contents>
 
 
 
 
 
 
20
  <compatible/>
21
  <dependencies><required><php><min>5.4.45</min><max>5.6.15</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kash_gateway</name>
4
+ <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license>MITL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Payment gateway that allows customers in the US to make payment via Direct Debit or Credit Card for just 0.5%.</summary>
10
+ <description>&lt;a href="http://www.withkash.com"&gt;Kash&lt;/a&gt; payment gateway allows you to accept payments for just 0.5% fee per transaction.&lt;br /&gt;&#xD;
11
+ &lt;br /&gt;&#xD;
12
+ - Accept Direct Debit payments&lt;br /&gt;&#xD;
13
+ - Accept credit card payments as well (you could either include or exclude the credit card fee in the total)&lt;br /&gt;&#xD;
14
+ - No monthly fee&lt;br /&gt;&#xD;
15
+ - No chargebacks on Direct Debit payments&lt;br /&gt;&#xD;
16
+ - Daily clearance (money deposited to your bank by next business day)&lt;br /&gt;&#xD;
17
+ &lt;br /&gt;&#xD;
18
+ You will need a Kash account in order to use this gateway. Please contact info@withkash.com for any questions.&lt;br /&gt;&#xD;
19
+ &lt;br /&gt;&#xD;
20
+ Direct Debit payment works by having the customers use their bank account to pay. Your customers can have the option to pay using a credit card as well. You can choose to either charge the credit card processing fee to the customer, or pay for the fee yourself like you do currently.</description>
21
+ <notes>v0.1.6 - Initial Release</notes>
22
+ <authors><author><name>Kash Corp.</name><user>Kash Corp</user><email>info@withkash.com</email></author></authors>
23
+ <date>2015-12-08</date>
24
+ <time>23:53:50</time>
25
+ <contents><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="kash"><file name="lightwindow.css" hash="543637b1312fd4b72696f18c14fc7a54"/><file name="start.css" hash="d310d178769035d366ebb2caff9bd4a3"/><file name="._lightwindow.css" hash="6bac7309b1e370cf137d882ba90d6510"/></dir></dir><dir name="js"><dir name="kash"><file name="lightwindow.js" hash="d94daf37446ba2fd00222de24c7cf9b6"/><file name="._lightwindow.js" hash="6bac7309b1e370cf137d882ba90d6510"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kash_Gateway.xml" hash="03365c54da611a023ea2a12c6404c455"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="kash"><file name="gateway.xml" hash="62ce90320a5d09cc8334e512c3cda3b3"/></dir></dir><dir name="template"><dir name="kash"><file name="container.phtml" hash="9dafeab90d16b221ab8684990ef62ec3"/><file name="form.phtml" hash="0b4b05f427474b08d1c52cfc09fc3485"/><file name="js.phtml" hash="3a1b1a96fd25b4035f41dbe95633f229"/><dir name="payment"><file name="mark.phtml" hash="96ac85ef2f73ec0953dee53cd3d7d0a7"/><file name="redirect.phtml" hash="9cd530bec26cc5f76ab01cfb57095c32"/><dir name="review"><file name="details.phtml" hash="ff2ad65893e66920a4cc8b098dc397c1"/></dir><file name="review.phtml" hash="ef1d435a2bc0e9daff56594a715bed1a"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="kash"><dir name="info"><file name="default.phtml" hash="79bcf1003e40c03ec35c383ec4ca5236"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Kash"><dir name="Gateway"><dir name="Block"><dir name="Adminhtml"><file name="Info.php" hash="186ac575a69755543d649d2174f43474"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="757f5028ff98d3c375cf3345675d55b7"/></dir></dir></dir><dir name="Form"><file name="Bb.php" hash="2516cb64469800cfc450710250317d72"/></dir><dir name="Review"><file name="Details.php" hash="9a077c6688f913bd4f9fee74fad68b7e"/></dir><file name="Review.php" hash="a2a24914d577262188c491898c77307e"/></dir><dir name="Helper"><file name="Checkout.php" hash="89863d74391a81e7336073a8c9634ce8"/><file name="Data.php" hash="cc0eb77c1be47e1d4e846033cc2aed9a"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="99ed019c3e8e13caf90fa248e608c9ea"/><file name="Bb.php" hash="3cabc71ab5f616b0614fa3d628e9dc4a"/></dir><file name="Cart.php" hash="ced06fca31abf3fbe20e3e2eb430cfea"/><file name="Checkout.php" hash="bed98494d4bb1d93b6e6758555d98450"/><file name="Config.php" hash="5299275ecc589f56c9bc9c9123e39405"/><dir name="Method"><file name="Bb.php" hash="6cd0683fa597d31d830ae7787b0284cd"/></dir><file name="Observer.php" hash="eede09fb15543e8a535820612104e520"/><file name="Session.php" hash="1778fbe493d2ceb81d8a20b58a21ce3c"/></dir><dir name="controllers"><file name="BbController.php" hash="3ab8fcfabbc52474eb7f161fc91c5986"/></dir><dir name="data"><dir name="kash_gateway_setup"><file name="data-install-0.0.1.php" hash="5fe91e15bc5e6269eadcc50f8991250a"/><file name="data-upgrade-0.0.1-0.0.2.php" hash="632331f77e2238438e1bddfe4c2b82bf"/></dir></dir><dir name="etc"><file name="config.xml" hash="9538e1037a44f4280726f537f0a9d3e5"/><file name="system.xml" hash="3667ceed76bc0a905af96e7b4adbf2b0"/></dir><dir name="sql"><dir name="kash_gateway_setup"><file name="install-0.0.1.php" hash="9ecb52ba48345cdbee9ce0fd92d2aff9"/></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.4.45</min><max>5.6.15</max></php></required></dependencies>
28
  </package>
skin/frontend/base/default/css/kash/lightwindow.css CHANGED
@@ -58,6 +58,9 @@
58
  -webkit-box-sizing: content-box;
59
  -moz-box-sizing: content-box;
60
  box-sizing: content-box;
 
 
 
61
  }
62
 
63
  #lightwindow_loading {
58
  -webkit-box-sizing: content-box;
59
  -moz-box-sizing: content-box;
60
  box-sizing: content-box;
61
+ /* needed for iOS scroller */
62
+ -webkit-overflow-scrolling: touch;
63
+ overflow-y: scroll;
64
  }
65
 
66
  #lightwindow_loading {
skin/frontend/base/default/js/kash/lightwindow.js CHANGED
@@ -585,10 +585,14 @@ lightwindow.prototype = {
585
  // Empty the contents
586
  $('lightwindow_contents').innerHTML = '';
587
 
588
- // Reset the scroll bars
589
- $('lightwindow_contents').setStyle({
590
- overflow: 'hidden'
591
- });
 
 
 
 
592
 
593
  if (!this.windowActive) {
594
  $('lightwindow_data_slide_inner').setStyle({
585
  // Empty the contents
586
  $('lightwindow_contents').innerHTML = '';
587
 
588
+ var userAgent = navigator.userAgent || navigator.vendor || window.opera;
589
+ if (!userAgent.match(/iPad|iPhone|iPod/i)) {
590
+ // Reset the scroll bars, except on iOS
591
+ $('lightwindow_contents').setStyle({
592
+ overflow: 'hidden'
593
+ });
594
+ }
595
+
596
 
597
  if (!this.windowActive) {
598
  $('lightwindow_data_slide_inner').setStyle({