Pelepay_Payment_Gateway - Version 0.1.4

Version Notes

Stable Release Date : 7th Jan 2013

Download this release

Release Info

Developer Etamar Sean Oren
Extension Pelepay_Payment_Gateway
Version 0.1.4
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.4

app/code/community/Eoi/Pelepay/Model/Paymentmethod.php CHANGED
@@ -113,6 +113,25 @@ class Eoi_Pelepay_Model_Paymentmethod extends Mage_Payment_Model_Method_Abstract
113
  */
114
  public function getFormFields()
115
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  // get transaction amount and currency
117
  if ($this->getConfigData('use_store_currency')) {
118
  $price = number_format($this->getOrder()->getGrandTotal(),2,'.','');
@@ -135,15 +154,15 @@ class Eoi_Pelepay_Model_Paymentmethod extends Mage_Payment_Model_Method_Abstract
135
  'orderid' => $this->getOrder()->getRealOrderId(),
136
  'testMode' => ($this->getConfigData('transaction_mode') == 'test') ? '100' : '0',
137
  'amount' => $price,
138
- 'description' => Mage::helper('pelepay')->__('Your purchase at') . ' ' . Mage::app()->getStore()->getName(),
139
  'Max_payments' => $this->getConfigData('max_payments'),
140
- 'address' => Mage::helper('core')->removeAccents($billing->getStreet(-1)).'
'.Mage::helper('core')->removeAccents($billing->getCity()),
141
  'postcode' => $billing->getPostcode() ,
142
  'country' => $billing->getCountry(),
143
  'phone' => $billing->getTelephone(),
144
  'email' => $this->getOrder()->getCustomerEmail(),
145
- 'firstname' => Mage::helper('core')->removeAccents($billing->getFirstname()),
146
- 'lastname' => Mage::helper('core')->removeAccents($billing->getLastname()),
147
  'cancel_return' => Mage::getUrl($this->getConfigData('cancel_return_url')),
148
  'fail_return' => Mage::getUrl($this->getConfigData('fail_return_url')),
149
  'success_return' => Mage::getUrl($this->getConfigData('success_return_url')) //success_return_url
113
  */
114
  public function getFormFields()
115
  {
116
+ $items = $this->getOrder()->getAllItems();
117
+ $prod_desc = '';
118
+ foreach ($items as $itemId => $item)
119
+ {
120
+ $name[] = $item->getName();
121
+ }
122
+ if(@is_array($name)) {
123
+ if(count($name) > 0) {
124
+ foreach($name as $k => $prd)
125
+ {
126
+ if($prd != '') {
127
+ if($prod_desc == '')
128
+ $prod_desc = $prd;
129
+ else
130
+ $prod_desc .= " | ".$prd;
131
+ }
132
+ }
133
+ }
134
+ }
135
  // get transaction amount and currency
136
  if ($this->getConfigData('use_store_currency')) {
137
  $price = number_format($this->getOrder()->getGrandTotal(),2,'.','');
154
  'orderid' => $this->getOrder()->getRealOrderId(),
155
  'testMode' => ($this->getConfigData('transaction_mode') == 'test') ? '100' : '0',
156
  'amount' => $price,
157
+ 'description' => $prod_desc,
158
  'Max_payments' => $this->getConfigData('max_payments'),
159
+ 'address' => $billing->getStreet(-1).'
'.$billing->getCity(),
160
  'postcode' => $billing->getPostcode() ,
161
  'country' => $billing->getCountry(),
162
  'phone' => $billing->getTelephone(),
163
  'email' => $this->getOrder()->getCustomerEmail(),
164
+ 'firstname' => $billing->getFirstname(),
165
+ 'lastname' => $billing->getLastname(),
166
  'cancel_return' => Mage::getUrl($this->getConfigData('cancel_return_url')),
167
  'fail_return' => Mage::getUrl($this->getConfigData('fail_return_url')),
168
  'success_return' => Mage::getUrl($this->getConfigData('success_return_url')) //success_return_url
package.xml CHANGED
@@ -1,20 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pelepay_Payment_Gateway</name>
4
- <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A pelepay payment gateway extension adds support to accept payment via Pelepay payment gateway</summary>
10
  <description>This extension will add support for pelepay payment gateway. It is Israel based payment gateway.&#xD;
11
- &#xD;
12
  </description>
13
- <notes>Stable Release Date : 27th Nov 2012</notes>
14
  <authors><author><name>Etamar Sean Oren</name><user>Sean</user><email>etamaro@eoi.co.il</email></author></authors>
15
- <date>2012-11-27</date>
16
- <time>11:01:46</time>
17
- <contents><target name="magecommunity"><dir name="Eoi"><dir name="Pelepay"><dir name="Block"><file name="Cancel.php" hash="a54772e58ee661252f37e2528cccb542"/><file name="Failure.php" hash="3e3ffc013764d69f1bbc8b843c683be7"/><file name="Form.php" hash="641a4d7136da527dbf6f90f1285ca1e6"/><file name="Info.php" hash="2f6276da2f800f6bfe854bb383cae037"/><file name="Redirect.php" hash="bc791d5369fa65da9324eff7ce1ad717"/><file name="Success.php" hash="c39059a50c53c0859e1036db6a3e33ff"/></dir><dir name="Helper"><file name="Data.php" hash="8c3572afa0d76e3535c0f551fa048b8d"/></dir><dir name="Model"><file name="Config.php" hash="67c9c6e836c27b815287b187102cdadc"/><file name="Paymentmethod.php" hash="23ca425f189291c13bdd364b38d05f89"/><dir name="Source"><file name="RequestType.php" hash="ead64f506ccc51eb48eb76c5c838528d"/><file name="SignatureType.php" hash="e3d5826bf12b8894f32dec8dc81d65ae"/><file name="TransactionMode.php" hash="112a001d2b69f6af9731761e7e94c17b"/></dir></dir><dir name="controllers"><file name="ProcessingController.php" hash="57b1d3a219cb006e8ab5805b479e4e87"/></dir><dir name="etc"><file name="config.xml" hash="2b66af7674167a91243993702424b2e5"/><file name="system.xml" hash="433034dfd36d82019b9543c63ceffe5c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eoi_Pelepay.xml" hash="1bef45de5bb9c9e7e60663855f86f629"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pelepay"><file name="info.phtml" hash="1d366cbd6f35b5ea0da657830e0668a2"/><dir name="pdf"><file name="info.phtml" hash="a6419b1373c4856effe01dae20e05e9a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pelepay.xml" hash="e5cab5db1850e7673c4caa7f02d39a49"/></dir><dir name="template"><dir name="pelepay"><file name="blank.phtml" hash="e763cc06e78fab78ce034f1462188ae8"/><file name="cancel.phtml" hash="203e69652380c5341ec8e2ab65444250"/><file name="failure.phtml" hash="b71f7657725712450310bd22b568e2da"/><file name="form.phtml" hash="50d13a62f40e8976d81b930ea9440e54"/><file name="info.phtml" hash="4548a60cb5828ed4d0b1a5e61263f16c"/><file name="mark.phtml" hash="7a6057c1fa08d239f6d8834309f1c359"/><file name="redirect.phtml" hash="ab2cec83225a66ae2e179f9feee31bc2"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pelepay_Payment_Gateway</name>
4
+ <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A pelepay payment gateway extension adds support to accept payment via Pelepay payment gateway</summary>
10
  <description>This extension will add support for pelepay payment gateway. It is Israel based payment gateway.&#xD;
 
11
  </description>
12
+ <notes>Stable Release Date : 7th Jan 2013</notes>
13
  <authors><author><name>Etamar Sean Oren</name><user>Sean</user><email>etamaro@eoi.co.il</email></author></authors>
14
+ <date>2013-01-07</date>
15
+ <time>12:36:45</time>
16
+ <contents><target name="magecommunity"><dir name="Eoi"><dir name="Pelepay"><dir name="Block"><file name="Cancel.php" hash="a54772e58ee661252f37e2528cccb542"/><file name="Failure.php" hash="3e3ffc013764d69f1bbc8b843c683be7"/><file name="Form.php" hash="641a4d7136da527dbf6f90f1285ca1e6"/><file name="Info.php" hash="2f6276da2f800f6bfe854bb383cae037"/><file name="Redirect.php" hash="bc791d5369fa65da9324eff7ce1ad717"/><file name="Success.php" hash="c39059a50c53c0859e1036db6a3e33ff"/></dir><dir name="Helper"><file name="Data.php" hash="8c3572afa0d76e3535c0f551fa048b8d"/></dir><dir name="Model"><file name="Config.php" hash="67c9c6e836c27b815287b187102cdadc"/><file name="Paymentmethod.php" hash="fbbc75f48583aa9386e8afe5e11d617b"/><dir name="Source"><file name="RequestType.php" hash="ead64f506ccc51eb48eb76c5c838528d"/><file name="SignatureType.php" hash="e3d5826bf12b8894f32dec8dc81d65ae"/><file name="TransactionMode.php" hash="112a001d2b69f6af9731761e7e94c17b"/></dir></dir><dir name="controllers"><file name="ProcessingController.php" hash="57b1d3a219cb006e8ab5805b479e4e87"/></dir><dir name="etc"><file name="config.xml" hash="2b66af7674167a91243993702424b2e5"/><file name="system.xml" hash="433034dfd36d82019b9543c63ceffe5c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eoi_Pelepay.xml" hash="1bef45de5bb9c9e7e60663855f86f629"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pelepay"><file name="info.phtml" hash="1d366cbd6f35b5ea0da657830e0668a2"/><dir name="pdf"><file name="info.phtml" hash="a6419b1373c4856effe01dae20e05e9a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pelepay.xml" hash="e5cab5db1850e7673c4caa7f02d39a49"/></dir><dir name="template"><dir name="pelepay"><file name="blank.phtml" hash="e763cc06e78fab78ce034f1462188ae8"/><file name="cancel.phtml" hash="203e69652380c5341ec8e2ab65444250"/><file name="failure.phtml" hash="b71f7657725712450310bd22b568e2da"/><file name="form.phtml" hash="50d13a62f40e8976d81b930ea9440e54"/><file name="info.phtml" hash="4548a60cb5828ed4d0b1a5e61263f16c"/><file name="mark.phtml" hash="7a6057c1fa08d239f6d8834309f1c359"/><file name="redirect.phtml" hash="ab2cec83225a66ae2e179f9feee31bc2"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>