Pagantis_Pagantis - Version 2.2.7

Version Notes

Add Date of birth parameter to be forwarded to the payment page

Download this release

Release Info

Developer Magento Core Team
Extension Pagantis_Pagantis
Version 2.2.7
Comparing to
See all releases


Code changes from version 2.2.6 to 2.2.7

app/code/community/Pagantis/Pagantis/Model/Webservice/Requestloan.php CHANGED
@@ -123,6 +123,7 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
123
  $array['address[province]'] = $this->_userData['province'];
124
  $array['address[zipcode]'] = $this->_userData['zipcode'];
125
  $array['dni'] = $this->_userData['dni'];
 
126
 
127
  foreach($this->_items as $key => $value){
128
  $array['items[' . $key . '][description]'] = $value['description'];
@@ -224,14 +225,25 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
224
  }
225
 
226
  //fix to avoid empty fields
227
- $customer = Mage::getSingleton('customer/session')->getCustomer();
228
- if (empty($this->_userData['email'])){
229
- $this->_userData['email'] = $customer->getEmail();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  }
231
- if (empty($this->_userData['full_name'])){
232
- $this->_userData['full_name'] = $customer->getFirstname() . ' ' . $customer->getLastname();
233
- }
234
-
235
  }
236
 
237
  /**
123
  $array['address[province]'] = $this->_userData['province'];
124
  $array['address[zipcode]'] = $this->_userData['zipcode'];
125
  $array['dni'] = $this->_userData['dni'];
126
+ $array['dob'] = $this->_userData['dob'];
127
 
128
  foreach($this->_items as $key => $value){
129
  $array['items[' . $key . '][description]'] = $value['description'];
225
  }
226
 
227
  //fix to avoid empty fields
228
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
229
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
230
+ if (empty($this->_userData['email'])){
231
+ $this->_userData['email'] = $customer->getEmail();
232
+ }
233
+ if (empty($this->_userData['full_name'])){
234
+ $this->_userData['full_name'] = $customer->getFirstname() . ' ' . $customer->getLastname();
235
+ }
236
+ if (empty($this->_userData['dni'])){
237
+ $this->_userData['dni'] = $customer->getData('taxvat');
238
+ }
239
+ if (empty($this->_userData['phone'])){
240
+ $this->_userData['phone'] = $customer->getPrimaryBillingAddress()->getTelephone();
241
+ }
242
+ if (empty($this->_userData['zipcode'])){
243
+ $this->_userData['zipcode'] = $customer->getPrimaryBillingAddress()->getPostcode();
244
+ }
245
+ $this->_userData['dob'] =substr($customer->getDob(),0,10);
246
  }
 
 
 
 
247
  }
248
 
249
  /**
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pagantis_Pagantis</name>
4
- <version>2.2.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>Paga+Tarde is an online payment method through which e-commerce websites offer their customers an easy and safe way to make deferred payments.&#xD;
11
  &#xD;
12
  Buyers can choose to pay in up to 12 installments. At the same time, the shops will receive the total amount of the sale, without taking any risk.</description>
13
- <notes>Fix http 302 error on notifications when magento have SSL configured in frontend</notes>
14
  <authors><author><name>Albert Fatsini</name><user>auto-converted</user><email>afatsini@digitalorigin.com</email></author></authors>
15
- <date>2016-03-08</date>
16
- <time>08:41:38</time>
17
- <contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="9ad1e01301a0edd832eb472d2a8a8161"/><file name="Redirect.php" hash="24fef0caf8b76c629b75e2d4acc81443"/></dir><dir name="Helper"><file name="Data.php" hash="e90849a9b9310979d58f7a092d2d2a28"/></dir><dir name="Model"><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="0b01db7cdb0cbc691218fb84c2e8ce1e"/><file name="Requestloan.php" hash="df7dd8bb75a64ef9b0e48b3ee7795f98"/><file name="Response.php" hash="bb1ade5931c5580f4585fc0fdb2bc4b0"/></dir><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="0c2a7b1b4ca273b482600b6e9e030ad9"/><file name="Payment.php" hash="737a295dbc465fe2333b187716c81077"/><file name=".Payment.php.swp" hash="3d8604107de061df66cb45ae029bd394"/></dir><dir name="controllers"><file name="PagantisController.php" hash="a7a4524e8e353e917f3867da669ffba3"/></dir><dir name="etc"><file name="config.xml" hash="a10e521ef5101e10d0b7aa61c2b76370"/><file name="system.xml" hash="494ce967feb8149a15666c95a3dbf03f"/></dir><dir name="sql"><dir name="pagantis_setup"><file name="mysql4-install-1.0.0.php" hash="4ec10724709f8d381758409f55cff99d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="4328e44e218a0996f4e2412c545a8e9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="6a13e760f9edb35dc2b5ac4cd2ac11f0"/></dir><dir name="template"><dir name="pagantis"><file name="form.phtml" hash="11cf70a55d8ec9e8ae3c1d94a832eeab"/><file name="pagantis.phtml" hash="3024436be4e339669f7ebf590f6c03a9"/><file name="redirect.phtml" hash="3d7d1a5076fc98269e5a7f476be27650"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pagantis_Pagantis.xml" hash="c57db60bd03314d7a45f27acc9a9475a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><file name="pagantis.css" hash="7d1b6daea9f42c2552ebb5bd5c15596d"/></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis-fav.png" hash="c4e162b51c0792ff25385506d7998818"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pagantis_Pagantis</name>
4
+ <version>2.2.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
10
  <description>Paga+Tarde is an online payment method through which e-commerce websites offer their customers an easy and safe way to make deferred payments.&#xD;
11
  &#xD;
12
  Buyers can choose to pay in up to 12 installments. At the same time, the shops will receive the total amount of the sale, without taking any risk.</description>
13
+ <notes>Add Date of birth parameter to be forwarded to the payment page</notes>
14
  <authors><author><name>Albert Fatsini</name><user>auto-converted</user><email>afatsini@digitalorigin.com</email></author></authors>
15
+ <date>2016-03-09</date>
16
+ <time>11:47:23</time>
17
+ <contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="9ad1e01301a0edd832eb472d2a8a8161"/><file name="Redirect.php" hash="24fef0caf8b76c629b75e2d4acc81443"/></dir><dir name="Helper"><file name="Data.php" hash="e90849a9b9310979d58f7a092d2d2a28"/></dir><dir name="Model"><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="0b01db7cdb0cbc691218fb84c2e8ce1e"/><file name="Requestloan.php" hash="00c32d587ff11b32d6fd95eaef679211"/><file name="Response.php" hash="bb1ade5931c5580f4585fc0fdb2bc4b0"/></dir><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="0c2a7b1b4ca273b482600b6e9e030ad9"/><file name="Payment.php" hash="737a295dbc465fe2333b187716c81077"/><file name=".Payment.php.swp" hash="3d8604107de061df66cb45ae029bd394"/></dir><dir name="controllers"><file name="PagantisController.php" hash="a7a4524e8e353e917f3867da669ffba3"/></dir><dir name="etc"><file name="config.xml" hash="a10e521ef5101e10d0b7aa61c2b76370"/><file name="system.xml" hash="494ce967feb8149a15666c95a3dbf03f"/></dir><dir name="sql"><dir name="pagantis_setup"><file name="mysql4-install-1.0.0.php" hash="4ec10724709f8d381758409f55cff99d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="4328e44e218a0996f4e2412c545a8e9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="6a13e760f9edb35dc2b5ac4cd2ac11f0"/></dir><dir name="template"><dir name="pagantis"><file name="form.phtml" hash="11cf70a55d8ec9e8ae3c1d94a832eeab"/><file name="pagantis.phtml" hash="3024436be4e339669f7ebf590f6c03a9"/><file name="redirect.phtml" hash="3d7d1a5076fc98269e5a7f476be27650"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pagantis_Pagantis.xml" hash="c57db60bd03314d7a45f27acc9a9475a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><file name="pagantis.css" hash="7d1b6daea9f42c2552ebb5bd5c15596d"/></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis-fav.png" hash="c4e162b51c0792ff25385506d7998818"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>