EASYNOLOBANCASELLAPRO - Version 1.4.6.1

Version Notes

New features


  • ReD fraud prevention

  • Riskified fraud prevention

  • One click payment with tokenization

  • Account section for credit cards management

Please note: with this release the support for IWD one page checkout is unstable.

Download this release

Release Info

Developer Easy Nolo SpA
Extension EASYNOLOBANCASELLAPRO
Version 1.4.6.1
Comparing to
See all releases


Code changes from version 1.4.6.0 to 1.4.6.1

Files changed (26) hide show
  1. app/code/community/EasyNolo/.DS_Store +0 -0
  2. app/code/community/EasyNolo/BancaSellaPro/Model/Observer.php +1 -1
  3. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/layout/easynolo_bancasellapro.xml +0 -163
  4. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/confirm3d.phtml +0 -18
  5. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/form.phtml +0 -186
  6. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/form_onepagecheckout.phtml +0 -116
  7. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/iframe.phtml +0 -58
  8. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/newtoken.phtml +0 -98
  9. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/redirect.phtml +0 -17
  10. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/riskified.phtml +0 -17
  11. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/token/list.phtml +0 -64
  12. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/page/redirect.phtml +0 -22
  13. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/enterprise/default/layout/easynolo_bancasellapro.xml +0 -63
  14. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/etc/modules/EasyNolo_BancaSellaPro.xml +0 -9
  15. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/etc/modules/EasyNolo_BancaSellaPro.xml.Onepage.txt +0 -13
  16. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/locale/en_US/EasyNolo_BancaSellaPro.csv +0 -32
  17. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/locale/it_IT/EasyNolo_BancaSellaPro.csv +0 -31
  18. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/js/bancasellapro/gestpayform_onepagecheckout.js +0 -592
  19. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/.DS_Store +0 -0
  20. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/.DS_Store +0 -0
  21. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/gestpay.png +0 -0
  22. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/red.png +0 -0
  23. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/riskified.png +0 -0
  24. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/frontend/base/default/images/easynolo_bancasella/wait.gif +0 -0
  25. app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/frontend/base/default/js/easynolo_bancasella/gestpayform_onepagecheckout.js +0 -591
  26. package.xml +4 -4
app/code/community/EasyNolo/.DS_Store CHANGED
Binary file
app/code/community/EasyNolo/BancaSellaPro/Model/Observer.php CHANGED
@@ -57,7 +57,7 @@ class EasyNolo_BancaSellaPro_Model_Observer extends Mage_Core_Model_Abstract{
57
  public function saveFingerPrint($event){
58
  $order = $event->getOrder();
59
  if($payment = Mage::app()->getRequest()->getParam('payment')) {
60
- if($fingerPrint = $payment['blackBox']) {
61
  $fp = Mage::getModel('easynolo_bancasellapro/sales_order_fingerPrint');
62
  $fp->setData('order_id', $order->getId());
63
  $fp->setData('finger_print', $fingerPrint);
57
  public function saveFingerPrint($event){
58
  $order = $event->getOrder();
59
  if($payment = Mage::app()->getRequest()->getParam('payment')) {
60
+ if(isset($payment['blackBox']) && $fingerPrint = $payment['blackBox']) {
61
  $fp = Mage::getModel('easynolo_bancasellapro/sales_order_fingerPrint');
62
  $fp->setData('order_id', $order->getId());
63
  $fp->setData('finger_print', $fingerPrint);
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/layout/easynolo_bancasellapro.xml DELETED
@@ -1,163 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout>
3
- <default>
4
- <reference name="before_body_end">
5
- <block type="core/template" name="gestpaypro.riskified.script.block" template="easynolo/bancasellapro/gestpay/riskified.phtml" ifconfig="payment/gestpaypro_riskified/enable" />
6
- </reference>
7
- </default>
8
-
9
- <easynolo_bancasellapro_gestpay_redirect>
10
- <label>Redirect...</label>
11
-
12
- <block type="easynolo_bancasellapro/newroot" name="root" output="toHtml" template="easynolo/bancasellapro/page/redirect.phtml">
13
-
14
- <block type="core/text_list" name="content" as="content" translate="label">
15
- <label>Main Content Area</label>
16
- <block type="easynolo_bancasellapro/redirect" name="bancasella_gestpay_redirect" template="easynolo/bancasellapro/gestpay/redirect.phtml"></block>
17
- </block>
18
-
19
- </block>
20
-
21
- </easynolo_bancasellapro_gestpay_redirect>
22
-
23
- <easynolo_bancasellapro_gestpay_success translate="label">
24
- <label>Checkout Success</label>
25
- <reference name="root">
26
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
27
- </reference>
28
- <reference name="content">
29
- <block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
30
- </reference>
31
- </easynolo_bancasellapro_gestpay_success>
32
-
33
- <easynolo_bancasellapro_gestpay_confirm3d>
34
- <block type="easynolo_bancasellapro/newroot" name="root" output="toHtml" template="easynolo/bancasellapro/page/redirect.phtml">
35
- <block type="core/text_list" name="content" as="content" translate="label">
36
- <block type="easynolo_bancasellapro/confirm3d" name="bancasellagestpay_confirm"
37
- template="easynolo/bancasellapro/gestpay/confirm3d.phtml" />
38
- </block>
39
- </block>
40
-
41
- </easynolo_bancasellapro_gestpay_confirm3d>
42
-
43
- <checkout_onepage_index>
44
- <reference name="head">
45
- <block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>
46
- <action method="addJs"><script>prototype/window.js</script></action>
47
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
48
- <action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
49
- <action method="addJs" ifconfig="payment/gestpaypro_red/enable"><script>bancasellapro/red_blackbox.js</script></action>
50
- <action method="addJs"><script>bancasellapro/gestpayform.js</script></action>
51
- <block type="core/text" name="paymentfont">
52
- <action method="setText">
53
- <text>
54
- <![CDATA[<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/paymentfont/1.1.2/css/paymentfont.min.css">]]>
55
- </text>
56
- </action>
57
- </block>
58
- </reference>
59
- <reference name="before_body_end">
60
- <block type="core/text" name="gestpaypro.red.script.block">
61
- <action method="setText" ifconfig="payment/gestpaypro_red/enable"><text><![CDATA[<script src="https://mpsnare.iesnare.com/snare.js"></script>]]></text></action>
62
- </block>
63
- <block type="core/template" name="gestpaypro.iframe.script.block" template="easynolo/bancasellapro/gestpay/iframe.phtml" ifconfig="payment/gestpaypro/iframe"/>
64
- </reference>
65
- </checkout_onepage_index>
66
-
67
- <!--WARNING: if you use a magento version 1.6 you must to use this comment handle instead of precedent handle-->
68
- <!--<checkout_onepage_index>-->
69
- <!--<reference name="head">-->
70
-
71
- <!--<block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>-->
72
- <!--<action method="addJs"><script>prototype/window.js</script></action>-->
73
- <!--<action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>-->
74
- <!--<action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>-->
75
- <!--<action method="addJs" ifconfig="payment/gestpaypro_red/enable"><script>bancasellapro/red_blackbox.js</script></action>-->
76
- <!--<action method="addJs"><script>bancasellapro/gestpayform.js</script></action>-->
77
-
78
- <!--</reference>-->
79
- <!--</checkout_onepage_index>-->
80
-
81
- <opc_index_index>
82
- <reference name="head">
83
- <block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>
84
- <action method="addJs"><script>prototype/window.js</script></action>
85
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
86
- <action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
87
- <action method="addItem"><type>skin_js</type><name>js/easynolo_bancasella/gestpayform_onepagecheckout.js</name></action>
88
- <block type="core/text" name="paymentfont">
89
- <action method="setText">
90
- <text>
91
- <![CDATA[<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/paymentfont/1.1.2/css/paymentfont.min.css">]]>
92
- </text>
93
- </action>
94
- </block>
95
- <reference name="before_body_end">
96
- <block type="core/text" name="gestpaypro.red.script.block">
97
- <action method="setText" ifconfig="payment/gestpaypro_red/enable"><text><![CDATA[<script src="https://mpsnare.iesnare.com/snare.js"></script>]]></text></action>
98
- </block>
99
- <block type="core/template" name="gestpaypro.iframe.script.block" template="easynolo/bancasellapro/gestpay/iframe.phtml" ifconfig="payment/gestpaypro/iframe"/>
100
- </reference>
101
- </reference>
102
- </opc_index_index>
103
-
104
- <!--WARNING: if you use a magento version 1.6 you must to use this comment handle instead of precedent handle-->
105
- <!--<opc_index_index>-->
106
- <!--<reference name="head">-->
107
- <!--<block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>-->
108
- <!--<action method="addJs"><script>prototype/window.js</script></action>-->
109
- <!--<action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>-->
110
- <!--<action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>-->
111
- <!--<action method="addItem"><type>skin_js</type><name>js/easynolo_bancasella/gestpayform_onepagecheckout.js</name></action>-->
112
- <!--</reference>-->
113
- <!--</opc_index_index>-->
114
-
115
-
116
-
117
-
118
- <easynolo_bancasellapro_tokenization_newtoken translate="label">
119
- <label>Generate a new token</label>
120
- <reference name="root">
121
- <action method="setTemplate"><template>page/1column.phtml</template></action>
122
- </reference>
123
- <reference name="head">
124
- <block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>
125
- <action method="addJs"><script>bancasellapro/newtoken.js</script></action>
126
- <action method="addJs"><script>prototype/window.js</script></action>
127
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
128
- <action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
129
- </reference>
130
-
131
- <reference name="content">
132
- <block type="easynolo_bancasellapro/tokenization_newtoken" name="checkout.success" template="easynolo/bancasellapro/gestpay/newtoken.phtml"/>
133
- </reference>
134
-
135
- </easynolo_bancasellapro_tokenization_newtoken>
136
-
137
- <customer_account>
138
- <reference name="customer_account_navigation">
139
- <action method="addLink">
140
- <name>gestpay_token</name>
141
- <path>easynolo_bancasellapro/tokenization</path>
142
- <label>My saved cards</label>
143
- </action>
144
- </reference>
145
- </customer_account>
146
-
147
- <easynolo_bancasellapro_tokenization_index>
148
- <update handle="customer_account"/>
149
- <reference name="my.account.wrapper">
150
- <block type="easynolo_bancasellapro/tokenization_list" name="gestpay_token" template="easynolo/bancasellapro/gestpay/token/list.phtml"/>
151
- <block type="customer/account_dashboard" name="customer.account.link.back" template="customer/account/link/back.phtml" />
152
- </reference>
153
- <reference name="head">
154
- <block type="core/text" name="paymentfont">
155
- <action method="setText">
156
- <text>
157
- <![CDATA[<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/paymentfont/1.1.2/css/paymentfont.min.css">]]>
158
- </text>
159
- </action>
160
- </block>
161
- </reference>
162
- </easynolo_bancasellapro_tokenization_index>
163
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/confirm3d.phtml DELETED
@@ -1,18 +0,0 @@
1
- <h1><?php echo Mage::helper('easynolo_bancasellapro')->__('You will be redirected to the payment system website in a few seconds.') ?></h1>
2
- <div>
3
- <p><?php echo Mage::helper('easynolo_bancasellapro')->__('You are redirecting to issuing bank for 3d authentification') ?></p>
4
- </div>
5
- <script type="text/javascript">
6
- //<![CDATA[
7
-
8
- var pares = '<?php echo $this->getPARes() ?>',
9
- cartUrl = '<?php echo $this->getCartUrl() ?>',
10
- bs = parent.BancaSellaForm;
11
-
12
- if (typeof bs == 'undefined') {
13
- parent.location.href = cartUrl;
14
- } else {
15
- bs.sendPares(pares);
16
- }
17
- //]]>
18
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/form.phtml DELETED
@@ -1,186 +0,0 @@
1
- <?php
2
- /**
3
- * @category EasyNolo
4
- * @package EasyNolo_BancaSellaPro
5
- * @author Easy Nolo <ecommerce@sella.it>
6
- */
7
- ?>
8
-
9
- <?php
10
- /* @var $this EasyNolo_BancaSellaPro_Block_Form */
11
- /* @var $method EasyNolo_BancaSellaPro_Model_Gestpay */
12
- $method = $this->getMethod();
13
- $_code = $this->getMethodCode();
14
- $merchantId = $method->getMerchantId();
15
- ?>
16
-
17
- <?php
18
- try{
19
- /** @var EasyNolo_BancaSellaPro_Helper_Crypt $helper */
20
- $encryptString = false;
21
-
22
- // If RED is enabled we must retrieve encrypted string after order confirmation.
23
- if( $this->isAjaxRequest() && $this->isIframeEnabled() && !$this->isRedEnabled() && !$this->isRiskifiedEnabled()){
24
- $helper = Mage::helper('easynolo_bancasellapro/crypt');
25
- $encryptString = $helper->getEncryptStringBeforeOrder($method);
26
- }
27
- ?>
28
-
29
- <fieldset class="form-list">
30
- <?php if($this->isIframeEnabled()): ?>
31
- <ul class="form-list" id="payment_iframe_<?php echo $_code ?>" style="display:none;">
32
- <?php $hasToken = $this->showToken(); ?>
33
- <?php if($hasToken): ?>
34
- <?php $token_helper = Mage::helper('easynolo_bancasellapro/recurringprofile'); ?>
35
- <li class="gestpay-tokens">
36
- <h4><?php echo $this->__('Your saved cards'); ?></h4>
37
- <table style="width: 50%">
38
- <thead>
39
- <tr>
40
- <th>&nbsp;</th>
41
- <th><?php echo $this->__('Card') ?></th>
42
- <th><?php echo $this->__('Expiration') ?></th>
43
- <th>&nbsp;</th>
44
- </tr>
45
- </thead>
46
- <tbody>
47
- <?php $i = 0; foreach ($this->getAllTokens() as $token): ?>
48
- <tr>
49
- <td style="text-align: center; vertical-align: middle;">
50
- <input <?php if($i==0){ echo 'checked'; } ?> type="radio" id="hid_<?php echo $_code ?>_token" name="bancasella_iframe[token]" style="margin-right: 4px;" value="<?php echo $token->getEntityId(); ?>" autocomplete="off" />
51
- </td>
52
- <td style="vertical-align: middle;"><?php echo $token_helper->getFormattedToken($token->getToken()); ?></td>
53
- <td style="vertical-align: middle;"><span class="nobr"><?php echo Mage::helper('core')->formatDate($token->getExpiryDate(), 'medium', false); ?></span></td>
54
- <td style="text-align: center; vertical-align: middle;" class="last">
55
- <?php $_vendor = $token_helper->getCardVendor($token->getToken()); ?>
56
- <span title="<?php echo $_vendor['label']; ?>">
57
- <i style="font-family: PaymentFont;font-style: normal;font-size: 25px;" class="pf-<?php echo $_vendor['id'] ?>"></i>
58
- </span>
59
- </td>
60
- </tr>
61
- <?php $i++; endforeach; ?>
62
- <tr>
63
- <td colspan="4">
64
- <a href="#" data-action="switchTokenToCard"><?php echo $this->__('Use new card'); ?></a>
65
- </td>
66
- </tr>
67
- </tbody>
68
- </table>
69
- </li>
70
- <?php endif; ?>
71
- <li style="<?php if($hasToken){ echo 'display: none'; } ?>" class="gestpay-form-field">
72
- <label for="<?php echo $_code ?>_cc_number" class="<?php if(!$hasToken){ echo 'required'; } ?>"><?php echo $this->__('Credit Card Number') ?></label>
73
- <div class="input-box">
74
- <input <?php if($hasToken){ echo 'disabled'; } ?> type="text" id="hid_<?php echo $_code ?>_cc_number" name="bancasella_iframe[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text <?php if(!$hasToken){ echo 'required-entry'; } ?> validate-number validate-cc-number" value="" autocomplete="off" />
75
- </div>
76
- </li>
77
- <li style="<?php if($hasToken){ echo 'display: none'; } ?>" class="gestpay-form-field">
78
- <label for="hid_<?php echo $_code ?>_cc_exp_mm" class="<?php if(!$hasToken){ echo 'required'; } ?>"><?php echo $this->__('Expiration Date') ?></label>
79
- <div class="input-box">
80
- <div class="v-fix">
81
- <select <?php if($hasToken){ echo 'disabled'; } ?> id="hid_<?php echo $_code ?>_cc_exp_mm" name="bancasella_iframe[cc_exp_mm]" class="month <?php if(!$hasToken){ echo 'required-entry'; } ?>">
82
- <?php foreach ($this->getCcMonths() as $k=>$v): ?>
83
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
84
- <?php endforeach ?>
85
- </select>
86
- </div>
87
- <div class="v-fix">
88
- <select <?php if($hasToken){ echo 'disabled'; } ?> id="hid_<?php echo $_code ?>_cc_exp_yy" name="bancasella_iframe[cc_exp_yy]" class="year <?php if(!$hasToken){ echo 'required-entry'; } ?>">
89
- <?php foreach ($this->getCcYears() as $k=>$v): ?>
90
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
91
- <?php endforeach ?>
92
- </select>
93
- </div>
94
- </div>
95
- </li>
96
- <li style="<?php if($hasToken){ echo 'display: none'; } ?>" class="gestpay-form-field">
97
- <label for="<?php echo $_code ?>_cc_cvv" class="<?php if(!$hasToken){ echo 'required'; } ?>"><?php echo $this->__('CVV2 / 4DBC') ?></label>
98
- <div class="input-box">
99
- <input type="text" id="hid_<?php echo $_code ?>_cc_cvv" name="bancasella_iframe[cc_cvv]" title="<?php echo $this->__('CVV2 / 4DBC') ?>" class="input-text <?php if(!$hasToken){ echo 'required-entry'; } ?> validate-number" value="" autocomplete="off" />
100
- </div>
101
- </li>
102
- <li style="<?php if($hasToken){ echo 'display: none'; } ?>" class="gestpay-form-field">
103
- <label for="<?php echo $_code ?>_cc_name" class="<?php if(!$hasToken){ echo 'required'; } ?>"><?php echo $this->__('Name on Card') ?></label>
104
- <div class="input-box">
105
- <input <?php if($hasToken){ echo 'disabled'; } ?> type="text" id="hid_<?php echo $_code ?>_cc_name" name="bancasella_iframe[cc_name]" title="<?php echo $this->__('Name on Card') ?>" class="input-text <?php if(!$hasToken){ echo 'required-entry'; } ?>" value="" autocomplete="off" />
106
- </div>
107
- </li>
108
- <li style="<?php if($hasToken){ echo 'display: none'; } ?>" class="gestpay-form-field">
109
- <label for="<?php echo $_code ?>_cc_email" class="<?php if(!$hasToken){ echo 'required'; } ?>"><?php echo $this->__('Email') ?></label>
110
- <div class="input-box">
111
- <input <?php if($hasToken){ echo 'disabled'; } ?> type="text" id="hid_<?php echo $_code ?>_cc_email" name="bancasella_iframe[cc_email]" title="<?php echo $this->__('Email') ?>" class="input-text <?php if(!$hasToken){ echo 'required-entry'; } ?> validate-email" value="" autocomplete="off" />
112
- </div>
113
- </li>
114
- </ul>
115
- <?php else: ?>
116
- <ul id="payment_form_<?php echo $_code ?>" style="display: none;">
117
- <li>
118
- <?php echo $this->__($method->getConfigData ( 'description' )) ?>
119
- </li>
120
- </ul>
121
- <?php endif; ?>
122
-
123
- <?php if($this->isIframeEnabled()): ?>
124
- <script type="text/javascript">
125
- //<![CDATA[
126
- if ( typeof BancaSellaForm !== 'undefined'){
127
-
128
- var GestPayConfig = {};
129
- GestPayConfig.merchantId = '<?php echo $merchantId ?>';
130
- <?php if($encryptString): ?>
131
- GestPayConfig.stringEncrypt = '<?php echo $encryptString ?>';
132
- <?php endif; ?>
133
- GestPayConfig.formId = 'payment_iframe_<?php echo $_code ?>';
134
- GestPayConfig.radioBancaSella = 'p_method_<?php echo $_code ?>';
135
- GestPayConfig.cssSelectorInfo = '#payment_form_<?php echo $_code ?> li';
136
- GestPayConfig.GestPayExternalClass = GestPay;
137
- GestPayConfig.idStart = 'hid_<?php echo $_code ?>';
138
- GestPayConfig.cssSelectorRadioPayment = '#checkout-payment-method-load input[type="radio"]';
139
- GestPayConfig.confirmPage = '<?php echo $this->getPage3d(); ?>';
140
- GestPayConfig.authPage = '<?php echo $this->getAuthPage(); ?>';
141
- GestPayConfig.showHidePaymentDivId = 'opc-payment';
142
- GestPayConfig.waitImage = '<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>';
143
- GestPayConfig.successRedirect = '<?php echo $this->getSuccessRedirect()?>';
144
- GestPayConfig.isRecurringProfile = '<?php echo $this->isRecurringProfile()?>';
145
- GestPayConfig.code = '<?php echo $_code ?>';
146
- GestPayConfig.enableRed = <?php echo $this->isRedEnabled() ? 'true' : 'false'; ?>;
147
- GestPayConfig.enableRiskified = <?php echo $this->isRiskifiedEnabled() ? 'true' : 'false'; ?>;
148
-
149
- GestPayConfig.enableFormToIframe = typeof BrowserEnabled !== 'undefined'? BrowserEnabled : false;
150
-
151
- BancaSellaForm.init(GestPayConfig);
152
-
153
- if(jQuery('a[data-action="switchTokenToCard"]').length > 0){
154
- jQuery('a[data-action="switchTokenToCard"]').on('click', function(event){
155
- event.preventDefault();
156
- jQuery(this).closest('li').hide();
157
- jQuery('.gestpay-form-field').show();
158
- jQuery('.gestpay-form-field label').addClass('required');
159
- jQuery('.gestpay-tokens input').prop('disabled', true);
160
- jQuery('.gestpay-form-field input, .gestpay-form-field select').addClass('required-entry').prop('disabled', false);
161
- })
162
- }
163
- }
164
- //]]>
165
- </script>
166
- <?php endif; ?>
167
- </fieldset>
168
- <?php
169
- }catch(Exception $e){
170
- $_helper= Mage::helper('easynolo_bancasellapro');
171
- $_helper->log($e->getMessage());
172
-
173
- if($this->isRecurringProfile()){
174
- ?>
175
- <script type="text/javascript">
176
- //<![CDATA[
177
- if ( typeof BancaSellaForm !== 'undefined' ){
178
- BancaSellaForm.code= '<?php echo $_code ?>';
179
- BancaSellaForm.removePaymentMethod();
180
- }
181
- //]]>
182
- </script>
183
- <?php
184
- }
185
- }
186
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/form_onepagecheckout.phtml DELETED
@@ -1,116 +0,0 @@
1
- <?php
2
- /**
3
- * @category EasyNolo
4
- * @package EasyNolo_BancaSellaPro
5
- * @author Easy Nolo <ecommerce@sella.it>
6
- */
7
- ?>
8
-
9
- <?php /* @var $this EasyNolo_BancaSellaPro_Block_Form */?>
10
- <?php /* @var $method EasyNolo_BancaSellaPro_Model_Gestpay */?>
11
- <?php $method = $this->getMethod() ?>
12
- <?php $_code=$this->getMethodCode() ?>
13
- <?php $merchantId = $method->getMerchantId() ?>
14
-
15
- <?php
16
- try{
17
- /** @var EasyNolo_BancaSellaPro_Helper_Crypt $helper */
18
- $encryptString = false;
19
-
20
- if( $this->isIframeEnabled() ){
21
- $helper =Mage::helper('easynolo_bancasellapro/crypt');
22
- $encryptString = $helper->getEncryptStringBeforeOrder($method);
23
- }
24
- ?>
25
-
26
- <fieldset class="form-list">
27
- <?php $_code=$this->getMethodCode() ?>
28
- <ul class="form-list" id="payment_iframe_<?php echo $_code ?>" style="display:none;">
29
- <li>
30
- <label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
31
- <div class="input-box">
32
- <input type="text" id="hid_<?php echo $_code ?>_cc_number" name="bancasella_iframe[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text required-entry validate-number validate-cc-number" value="" autocomplete="off" />
33
- </div>
34
- </li>
35
- <li>
36
- <label for="hid_<?php echo $_code ?>_cc_exp_mm" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
37
- <div class="input-box">
38
- <div class="v-fix">
39
- <select id="hid_<?php echo $_code ?>_cc_exp_mm" name="bancasella_iframe[cc_exp_mm]" class="month required-entry">
40
- <?php foreach ($this->getCcMonths() as $k=>$v): ?>
41
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
42
- <?php endforeach ?>
43
- </select>
44
- </div>
45
- <div class="v-fix">
46
- <select id="hid_<?php echo $_code ?>_cc_exp_yy" name="bancasella_iframe[cc_exp_yy]" class="year required-entry">
47
- <?php foreach ($this->getCcYears() as $k=>$v): ?>
48
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
49
- <?php endforeach ?>
50
- </select>
51
- </div>
52
- </div>
53
- </li>
54
- <li>
55
- <label for="<?php echo $_code ?>_cc_cvv" class="required"><em>*</em><?php echo $this->__('CVV2 / 4DBC') ?></label>
56
- <div class="input-box">
57
- <input type="text" id="hid_<?php echo $_code ?>_cc_cvv" name="bancasella_iframe[cc_cvv]" title="<?php echo $this->__('CVV2 / 4DBC') ?>" class="input-text required-entry validate-number" value="" autocomplete="off" />
58
- </div>
59
- </li>
60
- <li>
61
- <label for="<?php echo $_code ?>_cc_name" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
62
- <div class="input-box">
63
- <input type="text" id="hid_<?php echo $_code ?>_cc_name" name="bancasella_iframe[cc_name]" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" value="" autocomplete="off" />
64
- </div>
65
- </li>
66
- <li>
67
- <label for="<?php echo $_code ?>_cc_email" class="required"><em>*</em><?php echo $this->__('Email') ?></label>
68
- <div class="input-box">
69
- <input type="text" id="hid_<?php echo $_code ?>_cc_email" name="bancasella_iframe[cc_email]" title="<?php echo $this->__('Email') ?>" class="input-text required-entry validate-email" value="" autocomplete="off" />
70
- </div>
71
- </li>
72
-
73
- </ul>
74
-
75
- <ul id="payment_form_<?php echo $_code ?>" style="display: none;">
76
- <li>
77
- <?php echo $this->__($method->getConfigData ( 'description' )) ?>
78
- </li>
79
- </ul>
80
- <?php if($encryptString): ?>
81
- <script type="text/javascript">
82
- //<![CDATA[
83
- if ( typeof BancaSellaForm !== 'undefined'){
84
-
85
- var GestPayConfig = {};
86
- GestPayConfig.merchantId = '<?php echo $merchantId ?>';
87
- GestPayConfig.stringEncrypt = '<?php echo $encryptString ?>';
88
- GestPayConfig.formId = 'payment_iframe_<?php echo $_code ?>';
89
- GestPayConfig.radioBancaSella= 'p_method_<?php echo $_code ?>';
90
- GestPayConfig.cssSelectorInfo = '#payment_form_<?php echo $_code ?> li';
91
- GestPayConfig.GestPayExternalClass = GestPay;
92
- GestPayConfig.idStart = 'hid_<?php echo $_code ?>';
93
- GestPayConfig.cssSelectorRadioPayment = '#checkout-payment-method-load input[type="radio"]';
94
- GestPayConfig.confirmPage = '<?php echo $this->getPage3d(); ?>';
95
- GestPayConfig.authPage = '<?php echo $this->getAuthPage(); ?>';
96
- GestPayConfig.showHidePaymentDivId = 'opc-payment';
97
- GestPayConfig.waitImage= '<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>';
98
- GestPayConfig.successRedirect = '<?php echo $this->getSuccessRedirect()?>';
99
- GestPayConfig.isRecurringProfile= '<?php echo $this->isRecurringProfile()?>';
100
- GestPayConfig.code= '<?php echo $_code ?>';
101
-
102
- GestPayConfig.enableFormToIframe = typeof BrowserEnabled !== 'undefined'? BrowserEnabled : false;
103
-
104
- BancaSellaForm.init(GestPayConfig);
105
- }
106
- //]]>
107
- </script>
108
- <?php endif; ?>
109
- </fieldset>
110
- <?php
111
- }catch(Exception $e){
112
- //se il modulo non è configurato correttamente potrebbe
113
- $_helper= Mage::helper('easynolo_bancasellapro');
114
- $_helper->log($e->getMessage());
115
- }
116
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/iframe.phtml DELETED
@@ -1,58 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: maintux
5
- * Date: 18/12/16
6
- * Time: 19:13
7
- */
8
- ?>
9
- <script type="text/javascript">
10
- if (typeof Review != 'undefined') {
11
- Review.addMethods({
12
- nextStep: function(transport){
13
- if (transport && transport.responseText) {
14
- response = eval('(' + transport.responseText + ')');
15
- if (!response.success) {
16
- var msg = response.error_messages;
17
- if (typeof(msg)=='object') {
18
- msg = msg.join("\n");
19
- }
20
- if (msg) {
21
- alert(msg);
22
- }
23
- if (response.update_section) {
24
- $('checkout-'+response.update_section.name+'-load').update(response.update_section.html);
25
- }
26
- if (response.goto_section) {
27
- checkout.gotoSection(response.goto_section);
28
- }
29
- }else{
30
- this.isSuccess = true;
31
- BancaSellaForm.redirectSuccessUrl = this.successUrl;
32
- if(!BancaSellaForm.lock && ($(BancaSellaForm.radioBancaSella).checked)){
33
-
34
- if (response.success) {
35
- BancaSellaForm.redirectAfterIframe = this.successUrl;
36
- }
37
- if (response.redirect) {
38
- BancaSellaForm.redirectAfterIframe = response.redirect;
39
- }
40
-
41
- BancaSellaForm.saveDataCC($(BancaSellaForm.formId));
42
- //inviamo i dati della carta
43
- BancaSellaForm.sendPaymentIframe();
44
- }else{
45
- if (response.redirect) {
46
- location.href = response.redirect;
47
- return;
48
- }
49
- if (response.success) {
50
- window.location=this.successUrl;
51
- }
52
- }
53
- }
54
- }
55
- }
56
- });
57
- }
58
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/newtoken.phtml DELETED
@@ -1,98 +0,0 @@
1
-
2
- <?php /* @var $this EasyNolo_BancaSellaPro_Block_Tokenization_Newtoken*/?>
3
- <?php /* @var $method EasyNolo_BancaSellaPro_Model_Gestpay */?>
4
- <?php $method = $this->getMethod() ?>
5
- <?php $_code=$this->getMethodCode() ?>
6
- <?php $merchantId = $method->getMerchantId() ?>
7
-
8
- <?php
9
-
10
- /** @var EasyNolo_BancaSellaPro_Helper_Crypt $helper */
11
- $encryptString = false;
12
- //solo se il form è richimato in ajax recupero la stringa
13
- if( $method->isIframeEnabled() ){
14
- $encryptString = $this->getEncryptString();
15
- }
16
- ?>
17
- <div class="fieldset" id="tokenization-form">
18
- <h2 class="legend"><?php echo $this->__('Credit Card Data')?></h2>
19
- <ul class="form-list">
20
- <li>
21
- <label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
22
- <div class="input-box">
23
- <input type="text" id="<?php echo $_code ?>_cc_number" name="bancasella_iframe[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text required-entry validate-number validate-cc-number" value="" autocomplete="off" />
24
- </div>
25
- </li>
26
- <li>
27
- <label for="<?php echo $_code ?>_cc_exp_mm" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
28
- <div class="input-box">
29
- <div class="v-fix">
30
- <select id="<?php echo $_code ?>_cc_exp_mm" name="bancasella_iframe[cc_exp_mm]" class="month required-entry">
31
- <?php foreach ($this->getCcMonths() as $k=>$v): ?>
32
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
33
- <?php endforeach ?>
34
- </select>
35
- </div>
36
- <div class="v-fix">
37
- <select id="<?php echo $_code ?>_cc_exp_yy" name="bancasella_iframe[cc_exp_yy]" class="year required-entry">
38
- <?php foreach ($this->getCcYears() as $k=>$v): ?>
39
- <option value="<?php echo $k?$k:'' ?>"><?php echo $v ?></option>
40
- <?php endforeach ?>
41
- </select>
42
- </div>
43
- </div>
44
- </li>
45
- <li>
46
- <label for="<?php echo $_code ?>_cc_cvv" class="required"><em>*</em><?php echo $this->__('CVV2 / 4DBC') ?></label>
47
- <div class="input-box">
48
- <input type="text" id="<?php echo $_code ?>_cc_cvv" name="bancasella_iframe[cc_cvv]" title="<?php echo $this->__('CVV2 / 4DBC') ?>" class="input-text required-entry validate-number" value="" autocomplete="off" />
49
- </div>
50
- </li>
51
- <li>
52
- <label for="<?php echo $_code ?>_cc_name" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
53
- <div class="input-box">
54
- <input type="text" id="<?php echo $_code ?>_cc_name" name="bancasella_iframe[cc_name]" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" value="" autocomplete="off" />
55
- </div>
56
- </li>
57
- <li>
58
- <label for="<?php echo $_code ?>_cc_email" class="required"><em>*</em><?php echo $this->__('Email') ?></label>
59
- <div class="input-box">
60
- <input type="text" id="<?php echo $_code ?>_cc_email" name="bancasella_iframe[cc_email]" title="<?php echo $this->__('Email') ?>" class="input-text required-entry validate-email" value="" autocomplete="off" />
61
- </div>
62
- </li>
63
-
64
- </ul>
65
- </div>
66
-
67
- <div class="buttons-set">
68
- <p class="required"><?php echo $this->__('* Required Fields'); ?></p>
69
- <button title="<?php echo $this->__('Send'); ?>" class="button" onclick="EasyNoloTokenization.sendPaymentIframe()"><span><span><?php echo $this->__('Send'); ?></span></span></button>
70
- </div>
71
- <?php if($encryptString): ?>
72
- <script type="text/javascript">
73
- //<![CDATA[
74
- if ( typeof EasyNoloTokenization !== 'undefined'){
75
-
76
- var GestPayConfig = {};
77
- GestPayConfig.merchantId = '<?php echo $merchantId ?>';
78
- GestPayConfig.stringEncrypt = '<?php echo $encryptString ?>';
79
- GestPayConfig.formId = 'tokenization-form';
80
- GestPayConfig.GestPayExternalClass = GestPay;
81
- GestPayConfig.waitImage= '<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>';
82
- GestPayConfig.successRedirect = '<?php echo $this->getSuccessRedirect()?>';
83
- GestPayConfig.disableProfileRedirect = '<?php echo $this->getDisableProfileRedirect()?>';
84
- GestPayConfig.code= '<?php echo $_code ?>';
85
- GestPayConfig.enableFormToIframe = typeof BrowserEnabled !== 'undefined'? BrowserEnabled : false;
86
-
87
- EasyNoloTokenization.init(GestPayConfig);
88
- }
89
- //]]>
90
- </script>
91
- <?php endif; ?>
92
-
93
- </div>
94
- <script type="text/javascript">
95
- //<![CDATA[
96
- var dataForm = new VarienForm('tokenization-form', true);
97
- //]]>
98
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/redirect.phtml DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- /**
3
- * @category EasyNolo
4
- * @package EasyNolo_BancaSellaPro
5
- * @author Easy Nolo <ecommerce@sella.it>
6
- */
7
- ?>
8
- <div class="page-title">
9
- <h1><img src="<?php echo $this->getSkinUrl('images/easynolo_bancasella/wait.gif') ?>" class="logo" alt="<?php echo $this->__('You are redirecting to Banca Sella for completion of payment') ?>" /><?php echo $this->__('You are redirecting to Banca Sella for completion of payment') ?></h1>
10
- </div>
11
- <?php if($this->getMessage()): ?>
12
- <p><?php echo $this->getMessage() ?></p>
13
- <?php endif; ?>
14
- <?php echo $this->getRedirectOutput() ?>
15
- <?php if(!$this->isHtmlFormRedirect()): ?>
16
- <p><?php echo $this->__('Click <a href="%s">here</a> if you are not redirected within 10 seconds...', $this->getTargetURL()) ?></p>
17
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/riskified.phtml DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: maintux
5
- * Date: 30/12/16
6
- * Time: 16:11
7
- */
8
- ?>
9
-
10
- <script type="text/javascript">
11
- //<![CDATA[
12
- var riskified_store_domain = '<?php echo $_SERVER['HTTP_HOST']; ?>';
13
- var riskified_session_id = '<?php echo Mage::getSingleton("core/session")->getEncryptedSessionId() ?>';
14
- //]]>
15
- </script>
16
-
17
- <script type="text/javascript" src="<?php echo $this->getJSUrl('bancasellapro/riskified.js') ?>"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/gestpay/token/list.phtml DELETED
@@ -1,64 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: maintux
5
- * Date: 18/12/16
6
- * Time: 10:58
7
- */
8
- ?>
9
- <?php $helper = Mage::helper('easynolo_bancasellapro/recurringprofile'); ?>
10
-
11
- <div class="page-title">
12
- <h1><?php echo $this->__('My saved cards') ?></h1>
13
- </div>
14
-
15
- <?php echo $this->getMessagesBlock()->toHtml() ?>
16
-
17
- <table class="data-table linearize-table-large" id="my-saved-cards-table">
18
- <colgroup>
19
- <col width="1">
20
- <col width="1">
21
- <col>
22
- <col width="1">
23
- <col width="1">
24
- <col width="1">
25
- </colgroup><thead>
26
- <tr class="first last">
27
- <th><?php echo $this->__('Card #') ?></th>
28
- <th><?php echo $this->__('Vendor') ?></th>
29
- <th><?php echo $this->__('Number') ?></th>
30
- <th><?php echo $this->__('Expiration Date') ?></th>
31
- <th><?php echo $this->__('Recurring Profile') ?></th>
32
- <th><?php echo $this->__('Actions') ?></th>
33
- </tr>
34
- </thead>
35
- <tbody>
36
- <?php foreach($this->getAllTokens() as $token): ?>
37
- <tr>
38
- <td style="text-align: center; vertical-align: middle;"><?php echo $token->getEntityId(); ?></td>
39
- <td style="text-align: center; vertical-align: middle;">
40
- <?php $_vendor = $helper->getCardVendor($token->getToken()); ?>
41
- <span title="<?php echo $_vendor['label']; ?>">
42
- <i style="font-family: PaymentFont;font-style: normal;font-size: 25px;" class="pf-<?php echo $_vendor['id'] ?>"></i>
43
- </span>
44
- </td>
45
- <td style="vertical-align: middle;"><?php echo $helper->getFormattedToken($token->getToken()); ?></td>
46
- <td style="text-align: center; vertical-align: middle;"><span class="nobr"><?php echo $token->getExpiryDate(); ?></span></td>
47
- <td style="text-align: center; vertical-align: middle;">
48
- <?php if($profileId = $token->getProfileId()): ?>
49
- <a href="<?php echo $this->getUrl('sales/recurring_profile/view/', array('profile' => $profileId)) ?>">
50
- <?php echo $profileId; ?>
51
- </a>
52
- <?php else: ?>
53
- -
54
- <?php endif; ?>
55
- </td>
56
- <td style="text-align: center; vertical-align: middle;" class="last">
57
- <?php if(!$token->getProfileId()): ?>
58
- <a href="<?php echo $this->getUrl('bancasellapro/tokenization/delete/', array('token' => $token->getEntityId())) ?>"><?php echo $this->__('Delete'); ?></a>
59
- <?php endif; ?>
60
- </td>
61
- </tr>
62
- <?php endforeach; ?>
63
- </tbody>
64
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/base/default/template/easynolo/bancasellapro/page/redirect.phtml DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- /**
3
- * Template for EasyNolo_BancaSellaPro_Block_Newroot
4
- */
5
- ?>
6
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
8
- <head>
9
- <?php echo $this->getChildHtml('head') ?>
10
- </head>
11
- <body class="page-print<?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
12
- <div>
13
- <div class="print-head">
14
- <img src="<?php echo $this->getPrintLogoUrl() ? $this->getPrintLogoUrl() : $this->getSkinUrl('images/logo_print.gif') ?>" class="logo" alt="" />
15
- <?php if ($this->getPrintLogoText()):?>
16
- <address><?php echo nl2br($this->htmlEscape($this->getPrintLogoText())) ?></address>
17
- <?php endif;?>
18
- </div>
19
- <?php echo $this->getChildHtml('content') ?>
20
- </div>
21
- </body>
22
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/design/frontend/enterprise/default/layout/easynolo_bancasellapro.xml DELETED
@@ -1,63 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout>
3
-
4
- <easynolo_bancasellapro_gestpay_redirect>
5
- <label>Redirect...</label>
6
-
7
- <block type="easynolo_bancasellapro/newroot" name="root" output="toHtml" template="easynolo/bancasellapro/page/redirect.phtml">
8
-
9
- <block type="core/text_list" name="content" as="content" translate="label">
10
- <label>Main Content Area</label>
11
- <block type="easynolo_bancasellapro/redirect" name="bancasella_gestpay_redirect" template="easynolo/bancasellapro/gestpay/redirect.phtml"/>
12
- </block>
13
-
14
- </block>
15
-
16
- </easynolo_bancasellapro_gestpay_redirect>
17
-
18
- <easynolo_bancasellapro_gestpay_success translate="label">
19
- <label>Checkout Success</label>
20
- <reference name="root">
21
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
22
- </reference>
23
- <reference name="content">
24
- <block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
25
- </reference>
26
- </easynolo_bancasellapro_gestpay_success>
27
-
28
-
29
- <easynolo_bancasellapro_gestpay_confirm3d>
30
- <block type="easynolo_bancasellapro/newroot" name="root" output="toHtml" template="easynolo/bancasellapro/page/redirect.phtml">
31
- <block type="core/text_list" name="content" as="content" translate="label">
32
- <block type="easynolo_bancasellapro/confirm3d" name="bancasellagestpay_confirm"
33
- template="easynolo/bancasellapro/gestpay/confirm3d.phtml" />
34
- </block>
35
- </block>
36
-
37
- </easynolo_bancasellapro_gestpay_confirm3d>
38
-
39
- <checkout_onepage_index>
40
- <reference name="head">
41
- <block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>
42
- <action method="addJs"><script>prototype/window.js</script></action>
43
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
44
- <action method="addCss"><name>lib/prototype/windows/themes/magento.css</name></action>
45
- <action method="addJs" ifconfig="payment/gestpaypro_red/enable"><script>bancasellapro/red_blackbox.js</script></action>
46
- <action method="addJs"><script>bancasellapro/gestpayform.js</script></action>
47
- </reference>
48
- </checkout_onepage_index>
49
-
50
-
51
- <!--WARNING: this is a fix to magento 11.1. Comment before handle and enable this-->
52
- <!-- <checkout_onepage_index>
53
- <reference name="head">
54
- <block type="easynolo_bancasellapro/utility_text" name="gestpay.iframe.external"/>
55
- <action method="addJs"><script>prototype/window.js</script></action>
56
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
57
- <action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>
58
- <action method="addJs" ifconfig="payment/gestpaypro_red/enable"><script>bancasellapro/red_blackbox.js</script></action>
59
- <action method="addJs"><script>bancasellapro/gestpayform.js</script></action>
60
- </reference>
61
- </checkout_onepage_index> -->
62
-
63
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/etc/modules/EasyNolo_BancaSellaPro.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <EasyNolo_BancaSellaPro>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- </EasyNolo_BancaSellaPro>
8
- </modules>
9
- </config>
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/etc/modules/EasyNolo_BancaSellaPro.xml.Onepage.txt DELETED
@@ -1,13 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <EasyNolo_BancaSellaPro>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- <depends>
8
- <!--WARNING: Only if you use IWD_Opc you have to enable the follow depends-->
9
- <IWD_Opc />
10
- </depends>
11
- </EasyNolo_BancaSellaPro>
12
- </modules>
13
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/locale/en_US/EasyNolo_BancaSellaPro.csv DELETED
@@ -1,32 +0,0 @@
1
- "Checkout","Checkout"
2
- "Edit","Edit"
3
- "You will be redirected to the payment system website in a few seconds.","You will be redirected to the payment system website in a few seconds."
4
- "You will be redirected to Banca Sella in a few seconds.","You will be redirected to Banca Sella in a few seconds."
5
- "You are redirecting to issuing bank for 3d authentification","You are redirecting to issuing bank for 3d authentification"
6
- "Credit Card Data","Credit Card Data"
7
- "Credit Card Number","Credit Card Number"
8
- "Expiration Date","Expiration Date"
9
- "Year","Year"
10
- "Month","Month"
11
- "CVV2 / 4DBC","CVV2 / 4DBC"
12
- "Name on Card","Name on Card"
13
- "Email","Email"
14
- "* Required Fields","* Required Fields"
15
- "Send","Send"
16
- "You are redirecting to Banca Sella for completion of payment","You are redirecting to Banca Sella for completion of payment"
17
- "Click <a href=""%s"">here</a> if you are not redirected within 10 seconds...","Click <a href=""%s"">here</a> if you are not redirected within 10 seconds..."
18
- "Payment has been declined. Please try again.","Payment has been declined. Please try again."
19
- "Unable to set Payment Method.","Unable to set Payment Method."
20
- "Failed to update the profile.","Failed to update the profile."
21
- "Specified profile does not exist.","Specified profile does not exist."
22
- "Successfully retrieved a new payment token","Successfully retrieved a new payment token"
23
- "Unable to retrieve a new payment token","Unable to retrieve a new payment token"
24
- "There was an error processing your order. Please contact us or try again later.","There was an error processing your order. Please contact us or try again later."
25
- "Payment transaction not authorized: %s.","Payment transaction not authorized: %s."
26
- "You are waiting the completion of payment",""
27
- "Please wait...","Please wait..."
28
- "Payment authorization error","Payment authorization error"
29
- "Complete payment on Banca Sella website","Complete payment on Banca Sella website"
30
- "Send Credit Card Data","Send Credit Card Data"
31
- "Please correct the highlighted fields","Please correct the highlighted fields"
32
- "3D secure","3D secure"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/app/locale/it_IT/EasyNolo_BancaSellaPro.csv DELETED
@@ -1,31 +0,0 @@
1
- "Checkout","Checkout"
2
- "Edit","Modifica"
3
- "You will be redirected to the payment system website in a few seconds.","Sarai reindirizzato sul sito web di Banca Sella in pochi secondi."
4
- "You will be redirected to Banca Sella in a few seconds.","Sarai reindirizzato sul sito web di Banca Sella in pochi secondi."
5
- "You are redirecting to issuing bank for 3d authentification","Ti stiamo reindirizzando al sito della banca per la verifica del 3D Secure"
6
- "Credit Card Data","Dati della Carta di Credito"
7
- "Credit Card Number","Numero della carta"
8
- "Expiration Date","Data di scadenza"
9
- "Year","Anno"
10
- "Month","Mese"
11
- "CVV2 / 4DBC","CVV2 / 4DBC"
12
- "Name on Card","Nome sulla carta"
13
- "Email","Email"
14
- "* Required Fields","* Campi obbligatori"
15
- "Send","Invia"
16
- "You are redirecting to Banca Sella for completion of payment","Sarai reindirizzato sul sito web di Banca Sella per completare il pagamento"
17
- "Click <a href=""%s"">here</a> if you are not redirected within 10 seconds...","Clicca <a href=""%s"">qui</a> se non vieni reindirizzato entro 10 secondi..."
18
- "Payment has been declined. Please try again.","Il pagamento è stato rifiutato. Riprova."
19
- "Unable to set Payment Method.","Impossibile impostare il metodo di pagamento."
20
- "Failed to update the profile.","Si è verificato un errore durante l'aggiornamento del profilo."
21
- "Specified profile does not exist.","Il profilo selezionato non esiste."
22
- "Successfully retrieved a new payment token","Richiesta di aggiornamento del token effettuata con successo"
23
- "Unable to retrieve a new payment token","Richiesta di aggiornamento del token non effettuata"
24
- "There was an error processing your order. Please contact us or try again later.","Si è verificato un errore nel processo di pagamento. Riprova più tardi."
25
- "Payment transaction not authorized: %s.","Transazione di pagamento negata: %s."
26
- "Please wait...","Attendere prego..."
27
- "Payment authorization error","Si è verificato un problema nell'autorizzazione del pagamento"
28
- "Complete payment on Banca Sella website","Continua il pagamento sul sito di Banca Sella"
29
- "Send Credit Card Data","Invia i dati della carta di credito"
30
- "Please correct the highlighted fields","Per favore correggi i campi evidenziati"
31
- "3D secure","3D secure"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/js/bancasellapro/gestpayform_onepagecheckout.js DELETED
@@ -1,592 +0,0 @@
1
- if (typeof(BancaSellaForm) == 'undefined') {
2
-
3
- var BancaSellaForm = {
4
- formId : false,
5
- merchantId : false,
6
- stringEncrypt : false,
7
- radioBancaSella : false,
8
- cssSelectorInfo : false,
9
- GestPayExternalClass : false,
10
- enable : false,
11
- idStart : false,
12
- cssSelectorRadioPayment : false,
13
- redirectSuccessUrl : false,
14
- redirectAfterIframe : false,
15
- confirmPage : false,
16
- authPage : false,
17
- dialogCC : false,
18
- lock: false,
19
- modal3d : false,
20
- successRedirect : false,
21
- initalized : false,
22
- code:null,
23
- enableFormToIframe:false,
24
- isRecurringProfile:false,
25
-
26
- init : function (config){
27
- this.formId = config.formId;
28
- this.merchantId = config.merchantId;
29
- this.stringEncrypt = config.stringEncrypt;
30
- this.radioBancaSella = config.radioBancaSella;
31
- this.cssSelectorInfo = config.cssSelectorInfo;
32
- this.idStart = config.idStart;
33
- this.cssSelectorRadioPayment = config.cssSelectorRadioPayment;
34
- this.showHidePaymentDivId = config.showHidePaymentDivId;
35
- this.confirmPage = config.confirmPage;
36
- this.authPage = config.authPage;
37
- this.waitImage = config.waitImage;
38
- this.GestPayExternalClass = config.GestPayExternalClass;
39
- this.successRedirect = config.successRedirect;
40
-
41
- this.enableFormToIframe= config.enableFormToIframe;
42
- this.code= config.code;
43
- this.isRecurringProfile= config.isRecurringProfile;
44
-
45
- if(!this.enableFormToIframe && this.isRecurringProfile){
46
- this.removePaymentMethod();
47
- return;
48
- }
49
-
50
- document.observe("payment-method:switched", function(event) {
51
- if(event.memo.method_code == "gestpaypro"){
52
- if(!BancaSellaForm.initalized){
53
- BancaSellaForm.start();
54
- }
55
- BancaSellaForm.toggleStatusForm(true);
56
- }else{
57
- BancaSellaForm.disableForm();
58
- }
59
- });
60
-
61
- },
62
- start : function(){
63
- if(!this.lock){
64
- this.showWait();
65
- BancaSellaForm.initalized = true;
66
- BancaSellaForm.createPagePaymentToOrder(false);
67
-
68
- $$(this.cssSelectorRadioPayment).each(
69
- function(item){
70
- Event.observe(item, 'click', BancaSellaForm.togglePaymentForm);
71
- }
72
- );
73
- //aggiorniamo lo stato del form al caricamento del pagamento
74
- payment.addAfterInitFunction('update-get-pay-form',BancaSellaForm.togglePaymentForm);
75
-
76
- //aggiungiamo i dati dell form ad una variabile interna per l'invio dei dati
77
- payment.addBeforeValidateFunction('before-validate-gest-pay',function(){
78
- if(!BancaSellaForm.lock){
79
- if(BancaSellaForm.enable){
80
- var form =$(BancaSellaForm.formId );
81
- BancaSellaForm.realForm=form;
82
- return;
83
- }
84
- }
85
- BancaSellaForm.realForm = null;
86
- });
87
- }
88
- },
89
- toggleStatusForm : function (isEnable){
90
- if(isEnable){
91
- this.lock = false;
92
- this.enable = false;
93
- this.togglePaymentForm();
94
- //nascondo il messaggio del redirect dopo la conferma ordine
95
- $$(this.cssSelectorInfo).first().hide();
96
- }else{
97
- this.disableForm();
98
- //mostro il messaggio del redirect dopo la conferma ordine
99
- $$(this.cssSelectorInfo).first().show();
100
- this.lock = true;
101
- }
102
- },
103
- toggleForm: function (){
104
- if(!this.lock){
105
- if(this.enable && this.formId){
106
- this.disableForm();
107
- }
108
- else{
109
- this.enableForm();
110
- }
111
- }
112
- },
113
- enableForm : function (){
114
- if(!this.lock){
115
- // if(!this.enable ){
116
- $(this.formId).show();
117
- Form.enable( $(this.formId));
118
- this.enable = true;
119
- // }
120
- return true;
121
- }
122
- return false;
123
- },
124
- disableForm : function(){
125
- // if(!this.lock){
126
- if(this.enable ){
127
- $(this.formId).hide();
128
- Form.disable( $(this.formId));
129
- this.enable = false;
130
- // }
131
- return true;
132
- }
133
- return false;
134
- },
135
- togglePaymentForm : function (){
136
- if($(BancaSellaForm.radioBancaSella).checked){
137
- BancaSellaForm.enableForm();
138
- }else{
139
- BancaSellaForm.disableForm();
140
- }
141
- return false;
142
- },
143
- paymentPageLoad : function( Result ){
144
- if(Result.ErrorCode != 10){
145
- //l'iframe non è stato creato
146
- if(!this.enableFormToIframe && this.isRecurringProfile){
147
- //se il pagamento era per un profilo ricorrente allora rimuovo la form
148
- BancaSellaForm.removePaymentMethod();
149
- return;
150
- }else{
151
- BancaSellaForm.toggleStatusForm(false);
152
- }
153
- }else{
154
- BancaSellaForm.toggleStatusForm(true);
155
- }
156
- BancaSellaForm.hideWait();
157
- BancaSellaForm.unlockPlaceOrder();
158
- },
159
- paymentPageLoadToOrder : function( Result ){
160
- if(Result.ErrorCode != 10){
161
- if(!BancaSellaForm.enableFormToIframe && BancaSellaForm.isRecurringProfile){
162
- //se il pagamento era per un profilo ricorrente allora rimuovo la form
163
- BancaSellaForm.removePaymentMethod();
164
- return;
165
- }else{
166
- BancaSellaForm.toggleStatusForm(false);
167
- }
168
- }else{
169
- BancaSellaForm.toggleStatusForm(true);
170
- IWD.OPC.saveOrder();
171
- IWD.OPC.Plugin.dispatch('savePaymentAfter');
172
- }
173
- BancaSellaForm.hideWait();
174
- },
175
- paymentPageLoadToSaveOrder : function( Result ){
176
-
177
- BancaSellaForm.paymentPageLoad(Result);
178
- IWD.OPC.saveOrder();
179
-
180
- },
181
- sendPaymentIframe : function (){
182
- BancaSellaForm.showWait();
183
- BancaSellaForm.GestPayExternalClass.SendPayment ({
184
- CC : BancaSellaForm.ccData.cc,
185
- EXPMM : BancaSellaForm.ccData.expmm,
186
- EXPYY : BancaSellaForm.ccData.expyy,
187
- CVV2 : BancaSellaForm.ccData.cvv2,
188
- Name: BancaSellaForm.ccData.name,
189
- Email: BancaSellaForm.ccData.email
190
- },
191
- function ( Result ) {
192
- BancaSellaForm.hideWait();
193
- BancaSellaForm.analizeResponse.delay(0.8,Result);
194
- }
195
- );
196
- return true;
197
- },
198
- analizeResponse : function(Result){
199
- if (Result.ErrorCode != 0){
200
- if (Result.ErrorCode == 8006){
201
- //3D Transaction
202
- var TransKey = Result.TransKey;
203
- var VBVRisp = Result.VBVRisp;
204
- BancaSellaForm.call3dSecure ( TransKey, VBVRisp );
205
- }else{
206
-
207
- var idErrorInput = '';
208
- if(Result.ErrorCode == 1119 || Result.ErrorCode == 1120){
209
- idErrorInput= BancaSellaForm.idStart+'_cc_number';
210
- }else
211
- if(Result.ErrorCode == 1124 || Result.ErrorCode == 1126){
212
- idErrorInput= BancaSellaForm.idStart+'_cc_exp_mm'
213
- } else
214
- if(Result.ErrorCode == 1125){
215
- idErrorInput= BancaSellaForm.idStart+'_cc_exp_yy'
216
- }else
217
- if(Result.ErrorCode == 1149){
218
- idErrorInput= BancaSellaForm.idStart+'_cc_cvv'
219
- }else
220
- {
221
- //altri errori, uno dei possibili 4707
222
- Dialog.alert(Result.ErrorDescription,
223
- {
224
- className:'magento',
225
- width:300,
226
- height:90,
227
- zIndex:1000,
228
- okLabel: Translator.translate('Complete payment on Banca Sella website'),
229
- buttonClass: "scalable",
230
- id: "alertRedirect",
231
- title: Translator.translate('Payment authorization error'),
232
- onOk: BancaSellaForm.redirectPaymentPage
233
- }
234
- );
235
- return false;
236
- }
237
- BancaSellaForm.showModalDialogCC(idErrorInput, Result.ErrorDescription);
238
- return false;
239
- }
240
- }else{
241
- //pagamento effettuato con successo oppure l'utente ha annullato il 3dsecure;
242
- setLocation(BancaSellaForm.successRedirect + '?a='+ BancaSellaForm.merchantId + '&b='+ Result.EncryptedString);
243
- return;
244
- }
245
- },
246
- call3dSecure : function (TransKey, VBVRisp){
247
- BancaSellaForm.transKey=TransKey;
248
- var a = this.merchantId;
249
- var b = VBVRisp;
250
- var c= BancaSellaForm.confirmPage;
251
- var definitiveUrl = BancaSellaForm.authPage+'?a='+a+'&b='+b+'&c='+c ;
252
- BancaSellaForm.showModal(definitiveUrl);
253
- },
254
- redirectPaymentPage : function (){
255
- if(BancaSellaForm.isRecurringProfile){
256
- //il pagamento ricorrente non puo essere effettuato su bancasella
257
- setLocation(BancaSellaForm.redirectAfterIframe);
258
- }else{
259
- setLocation(BancaSellaForm.successRedirect);
260
- }
261
- return;
262
- },
263
- showModal : function (url)
264
- {
265
- this.modal3d = new Window(
266
- {
267
- className:'magento',
268
- id:'gestpay_window',
269
- title:Translator.translate('3D secure'),
270
- url:url,
271
- width:400,
272
- height:400,
273
- zIndex:1000,
274
- minimizable: false,
275
- maximizable : false,
276
- closable:false,
277
- destroyOnClose:true,
278
- recenterAuto:true
279
- });
280
- this.modal3d.setZIndex(1000);
281
- this.modal3d.showCenter(true);
282
- },
283
- //chiamata dall'iframe e non in questa pagina
284
- sendPares : function (pares){
285
- this.modal3d.close();
286
- BancaSellaForm.showWait.delay(0.8);
287
- this.GestPayExternalClass.SendPayment ({
288
- PARes : pares ,
289
- TransKey : BancaSellaForm.transKey
290
- },
291
- function ( Result ) {
292
- BancaSellaForm.hideWait();
293
- BancaSellaForm.analizeResponse.delay(0.8,Result);
294
- }
295
- );
296
- return false;
297
- },
298
- showModalDialogCC : function( id, message ){
299
- var form = BancaSellaForm.realForm;
300
-
301
- BancaSellaForm.populateForm(form,id,false);
302
-
303
- BancaSellaForm.checkAndCloseDialogCC();
304
-
305
- if (!BancaSellaForm.dialogCC){
306
-
307
- BancaSellaForm.dialogCC = Dialog.alert('<div id="modal-form"><ul class="form-list">'+form.innerHTML+'</ul></div>',
308
- {
309
- className:'magento',
310
- closeOnEsc:false,
311
- width:300,
312
- height:400,
313
- zIndex:1000,
314
- okLabel: Translator.translate('Send Credit Card Data'),
315
- buttonClass: "scalable",
316
- id: "dialogcc",
317
- title: Translator.translate('Please correct the highlighted fields'),
318
- onOk: function (){
319
- var validator = new Validation($('modal-form'));
320
- if (!validator.validate())
321
- return false;
322
- BancaSellaForm.saveDataCC($('modal-form'));
323
- BancaSellaForm.sendPaymentIframe.delay(0.8);
324
- return true;
325
- }
326
- }
327
- );
328
- }
329
- alert(message);
330
- },
331
- showWait : function(){
332
- IWD.OPC.Checkout.showLoader();
333
- IWD.OPC.Checkout.lockPlaceOrder();
334
- },
335
- hideWait: function(){
336
- IWD.OPC.Checkout.hideLoader();
337
- IWD.OPC.Checkout.unlockPlaceOrder();
338
- },
339
- lockPlaceOrder: function(){
340
- IWD.OPC.Checkout.lockPlaceOrder();
341
- },
342
- unlockPlaceOrder: function(){
343
- IWD.OPC.Checkout.unlockPlaceOrder();
344
- },
345
-
346
- saveDataCC :function (form){
347
- BancaSellaForm.ccData=[];
348
- BancaSellaForm.ccData.cc = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_number').first());
349
- BancaSellaForm.ccData.expmm = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_exp_mm').first());
350
- BancaSellaForm.ccData.expyy = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_exp_yy').first());
351
- BancaSellaForm.ccData.cvv2 = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_cvv').first());
352
- BancaSellaForm.ccData.name = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_name').first());
353
- BancaSellaForm.ccData.email = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_email').first());
354
- return true;
355
- },
356
- populateForm:function(form,id,enable){
357
- Form.getElements(form).each(function (input){
358
- input.disabled=enable;
359
- if(input.id == id){
360
- input.addClassName('validation-failed');
361
- }else {
362
- input.removeClassName('validation-failed');
363
- }
364
- switch (input.id){
365
- case BancaSellaForm.idStart+'_cc_number':
366
- input.setAttribute('value',BancaSellaForm.ccData.cc);
367
- break;
368
- case BancaSellaForm.idStart+'_cc_exp_mm':
369
- options = input.childElements();
370
- len = options.length;
371
- for (var i = 0; i < len; i++) {
372
- if(options[i].value == BancaSellaForm.ccData.expmm){
373
- options[i].setAttribute('selected',true);
374
- }
375
- }
376
- break;
377
- case BancaSellaForm.idStart+'_cc_exp_yy':
378
- options = input.childElements();
379
- len = options.length;
380
- for (var i = 0; i < len; i++) {
381
- if(options[i].value == BancaSellaForm.ccData.expyy){
382
- options[i].setAttribute('selected',true);
383
- }
384
- }
385
- break;
386
- case BancaSellaForm.idStart+'_cc_cvv':
387
- input.setAttribute('value',BancaSellaForm.ccData.cvv2);
388
- break;
389
- case BancaSellaForm.idStart+'_cc_name':
390
- input.setAttribute('value',BancaSellaForm.ccData.name);
391
- break;
392
- case BancaSellaForm.idStart+'_cc_email':
393
- input.setAttribute('value',BancaSellaForm.ccData.email);
394
- break;
395
- default :
396
- console.log('non ho trovato '+ input.id);
397
- }
398
- });
399
- },
400
- checkAndCloseDialogCC : function(){
401
- if(BancaSellaForm.dialogCC){
402
- Windows.close('dialogcc');
403
- BancaSellaForm.dialogCC=false;
404
- }
405
- },
406
- removePaymentMethod : function(){
407
- $(this.formId).hide();
408
- var $paymentForm = $('p_method_' + this.code);
409
- $paymentForm.setAttribute('disabled','disabled');
410
- $paymentForm.up('dt').hide();
411
- },
412
- createPagePaymentToOrder: function (callSendOrder){
413
- IWD.OPC.Checkout.showLoader();
414
- IWD.OPC.Checkout.lockPlaceOrder();
415
- if(callSendOrder){
416
- BancaSellaForm.GestPayExternalClass.CreatePaymentPage( BancaSellaForm.merchantId, BancaSellaForm.stringEncrypt, BancaSellaForm.paymentPageLoadToOrder);
417
- }
418
- else{
419
- BancaSellaForm.GestPayExternalClass.CreatePaymentPage( BancaSellaForm.merchantId, BancaSellaForm.stringEncrypt, BancaSellaForm.paymentPageLoad);
420
- }
421
- }
422
- };
423
- }
424
-
425
- // define jquery
426
- if(typeof($j_opc) == 'undefined' || $j_opc == undefined || !$j_opc){
427
- $j_opc = false;
428
-
429
- if(typeof($ji) != 'undefined' && $ji != undefined && $ji)
430
- $j_opc = $ji; // from iwd_all 2.x
431
- else{
432
- if(typeof($j) != 'undefined' && $j != undefined && $j)
433
- $j_opc = $j; // from default magento 1.9
434
- else{
435
- if(typeof(jQuery) != 'undefined' && jQuery != undefined && jQuery)
436
- $j_opc = jQuery;
437
- }
438
- }
439
- }
440
-
441
- if(typeof IWD.OPC != 'undefined'){
442
-
443
- IWD.OPC.prepareOrderResponse = function (response){
444
- IWD.OPC.Checkout.xhr = null;
445
- if (typeof(response.error) != "undefined" && response.error!=false){
446
- IWD.OPC.Checkout.hideLoader();
447
- IWD.OPC.Checkout.unlockPlaceOrder();
448
- IWD.OPC.saveOrderStatus = false;
449
- $j_opc('.opc-message-container').html(response.error);
450
- $j_opc('.opc-message-wrapper').show();
451
- IWD.OPC.Plugin.dispatch('error');
452
- return;
453
- }
454
-
455
- if (typeof(response.error_messages) != "undefined" && response.error_messages!=false){
456
- IWD.OPC.Checkout.hideLoader();
457
- IWD.OPC.Checkout.unlockPlaceOrder();
458
-
459
- IWD.OPC.saveOrderStatus = false;
460
- $j_opc('.opc-message-container').html(response.error_messages);
461
- $j_opc('.opc-message-wrapper').show();
462
- IWD.OPC.Plugin.dispatch('error');
463
- return;
464
- }
465
-
466
- if (typeof(response.update_section) != "undefined"){
467
- IWD.OPC.Checkout.hideLoader();
468
- IWD.OPC.Checkout.unlockPlaceOrder();
469
- //create catch for default logic - for not spam errors to console
470
- try{
471
- $j_opc('#checkout-' + response.update_section.name + '-load').html(response.update_section.html);
472
- }catch(e){
473
-
474
- }
475
- IWD.OPC.prepareExtendPaymentForm();
476
- $j_opc('#payflow-advanced-iframe').show();
477
- $j_opc('#payflow-link-iframe').show();
478
- $j_opc('#hss-iframe').show();
479
- }
480
-
481
- if(!BancaSellaForm.lock && ($(BancaSellaForm.radioBancaSella).checked)){
482
- IWD.OPC.prepareExtendPaymentForm();
483
- $j_opc('.opc-col-right').find('h3').first().text(Translator.translate('Please wait...'));
484
- $j_opc('#opc-review-block').html('<div><p>'+Translator.translate('You are waiting the completion of payment')+'</p></div>');
485
-
486
- if (response.redirect) {
487
- BancaSellaForm.redirectAfterIframe = response.redirect;
488
- }
489
-
490
- BancaSellaForm.saveDataCC(BancaSellaForm.realForm);
491
- //inviamo i dati della carta
492
- BancaSellaForm.sendPaymentIframe();
493
- }else{
494
- if (typeof(response.redirect) !="undefined"){
495
- if (response.redirect!==false){
496
- setLocation(response.redirect);
497
- return;
498
- }
499
- }
500
- }
501
- IWD.OPC.Checkout.hideLoader();
502
- IWD.OPC.Checkout.unlockPlaceOrder();
503
-
504
- IWD.OPC.Plugin.dispatch('responseSaveOrder', response);
505
- };
506
- IWD.OPC.preparePaymentResponse = function(response){
507
-
508
- IWD.OPC.Checkout.xhr = null;
509
-
510
- IWD.OPC.agreements = $j_opc('#checkout-agreements').serializeArray();
511
-
512
- IWD.OPC.getSubscribe();
513
-
514
- if (typeof(response.review)!= "undefined"){
515
- IWD.OPC.Decorator.updateGrandTotal(response);
516
-
517
- $j_opc('#opc-review-block').html(response.review);
518
- IWD.OPC.Checkout.removePrice();
519
-
520
- // need to recheck subscribe and agreenet checkboxes
521
- IWD.OPC.recheckItems();
522
- }
523
-
524
- IWD.OPC.Checkout.hideLoader();
525
- IWD.OPC.Checkout.unlockPlaceOrder();
526
-
527
- if (typeof(response.error) != "undefined"){
528
-
529
- IWD.OPC.Plugin.dispatch('error');
530
-
531
- $j_opc('.opc-message-container').html(response.error);
532
- $j_opc('.opc-message-wrapper').show();
533
- IWD.OPC.Checkout.hideLoader();
534
- IWD.OPC.Checkout.unlockPlaceOrder();
535
- IWD.OPC.saveOrderStatus = false;
536
-
537
- return;
538
- }
539
-
540
- //SOME PAYMENT METHOD REDIRECT CUSTOMER TO PAYMENT GATEWAY
541
- if (typeof(response.redirect) != "undefined" && IWD.OPC.saveOrderStatus===true){
542
- IWD.OPC.Checkout.xhr = null;
543
- IWD.OPC.Plugin.dispatch('redirectPayment', response.redirect);
544
- if (IWD.OPC.Checkout.xhr==null){
545
- setLocation(response.redirect);
546
- }
547
- else
548
- {
549
- IWD.OPC.Checkout.hideLoader();
550
- IWD.OPC.Checkout.unlockPlaceOrder();
551
- }
552
-
553
- return;
554
- }
555
-
556
- if(typeof(response.encrypt_string) != "undefined" ){
557
-
558
- if (typeof IWD.OPC.Checkout.showLoader != "undefined"){
559
- IWD.OPC.Checkout.showLoader();
560
- }
561
- //aggiorno la stringa
562
- BancaSellaForm.stringEncrypt = response.encrypt_string;
563
-
564
- BancaSellaForm.createPagePaymentToOrder(IWD.OPC.saveOrderStatus===true);
565
-
566
- }else if (IWD.OPC.saveOrderStatus===true){
567
- IWD.OPC.saveOrder();
568
- }else{
569
- if (typeof IWD.OPC.Checkout.hideLoader != "undefined"){
570
- IWD.OPC.Checkout.hideLoader();
571
- }
572
- IWD.OPC.Checkout.unlockPlaceOrder();
573
- }
574
- IWD.OPC.Plugin.dispatch('savePaymentAfter');
575
- }
576
- }
577
-
578
- $j_opc.ajaxPrefilter(function( options ) {
579
- if(decodeURIComponent(options.data).indexOf('payment[method]=gestpaypro') != -1 ){
580
- //salvo i dati della carta nel oggetto
581
- BancaSellaForm.saveDataCC(BancaSellaForm.realForm);
582
-
583
- //rimuovo tutti i dati della carta dalla richiesta
584
- var splitItems= options.data.split('&');
585
- for(var i=0; i < splitItems.length; ++i){
586
- if(decodeURIComponent(splitItems[i]).indexOf('bancasella_iframe') == 0 ){
587
- splitItems.splice(i--,1);
588
- }
589
- }
590
- options.data = splitItems.join('&');
591
- }
592
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/.DS_Store DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/.DS_Store DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/gestpay.png DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/red.png DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/adminhtml/default/default/images/bancasellapro/riskified.png DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/frontend/base/default/images/easynolo_bancasella/wait.gif DELETED
Binary file
app/code/community/EasyNolo/BancaSellaPro/_additional_structure/skin/frontend/base/default/js/easynolo_bancasella/gestpayform_onepagecheckout.js DELETED
@@ -1,591 +0,0 @@
1
- if (typeof(BancaSellaForm) == 'undefined') {
2
-
3
- var BancaSellaForm = {
4
- formId : false,
5
- merchantId : false,
6
- stringEncrypt : false,
7
- radioBancaSella : false,
8
- cssSelectorInfo : false,
9
- GestPayExternalClass : false,
10
- enable : false,
11
- idStart : false,
12
- cssSelectorRadioPayment : false,
13
- redirectSuccessUrl : false,
14
- redirectAfterIframe : false,
15
- confirmPage : false,
16
- authPage : false,
17
- dialogCC : false,
18
- lock: false,
19
- modal3d : false,
20
- successRedirect : false,
21
- initalized : false,
22
- code:null,
23
- enableFormToIframe:false,
24
- isRecurringProfile:false,
25
-
26
- init : function (config){
27
- this.formId = config.formId;
28
- this.merchantId = config.merchantId;
29
- this.stringEncrypt = config.stringEncrypt;
30
- this.radioBancaSella = config.radioBancaSella;
31
- this.cssSelectorInfo = config.cssSelectorInfo;
32
- this.idStart = config.idStart;
33
- this.cssSelectorRadioPayment = config.cssSelectorRadioPayment;
34
- this.showHidePaymentDivId = config.showHidePaymentDivId;
35
- this.confirmPage = config.confirmPage;
36
- this.authPage = config.authPage;
37
- this.waitImage = config.waitImage;
38
- this.GestPayExternalClass = config.GestPayExternalClass;
39
- this.successRedirect = config.successRedirect;
40
-
41
- this.enableFormToIframe= config.enableFormToIframe;
42
- this.code= config.code;
43
- this.isRecurringProfile= config.isRecurringProfile;
44
-
45
- if(!this.enableFormToIframe && this.isRecurringProfile){
46
- this.removePaymentMethod();
47
- return;
48
- }
49
-
50
- document.observe("payment-method:switched", function(event) {
51
- if(event.memo.method_code == "gestpaypro"){
52
- if(!BancaSellaForm.initalized){
53
- BancaSellaForm.start();
54
- }
55
- BancaSellaForm.toggleStatusForm(true);
56
- }else{
57
- BancaSellaForm.disableForm();
58
- }
59
- });
60
-
61
- },
62
- start : function(){
63
- if(!this.lock){
64
- this.showWait();
65
- BancaSellaForm.initalized = true;
66
- BancaSellaForm.createPagePaymentToOrder(false);
67
-
68
- $$(this.cssSelectorRadioPayment).each(
69
- function(item){
70
- Event.observe(item, 'click', BancaSellaForm.togglePaymentForm);
71
- }
72
- );
73
- //aggiorniamo lo stato del form al caricamento del pagamento
74
- payment.addAfterInitFunction('update-get-pay-form',BancaSellaForm.togglePaymentForm);
75
-
76
- //aggiungiamo i dati dell form ad una variabile interna per l'invio dei dati
77
- payment.addBeforeValidateFunction('before-validate-gest-pay',function(){
78
- if(!BancaSellaForm.lock){
79
- if(BancaSellaForm.enable){
80
- var form =$(BancaSellaForm.formId );
81
- BancaSellaForm.realForm=form;
82
- return;
83
- }
84
- }
85
- BancaSellaForm.realForm = null;
86
- });
87
- }
88
- },
89
- toggleStatusForm : function (isEnable){
90
- if(isEnable){
91
- this.lock = false;
92
- this.enable = false;
93
- this.togglePaymentForm();
94
- //nascondo il messaggio del redirect dopo la conferma ordine
95
- $$(this.cssSelectorInfo).first().hide();
96
- }else{
97
- this.disableForm();
98
- //mostro il messaggio del redirect dopo la conferma ordine
99
- $$(this.cssSelectorInfo).first().show();
100
- this.lock = true;
101
- }
102
- },
103
- toggleForm: function (){
104
- if(!this.lock){
105
- if(this.enable && this.formId){
106
- this.disableForm();
107
- }
108
- else{
109
- this.enableForm();
110
- }
111
- }
112
- },
113
- enableForm : function (){
114
- if(!this.lock){
115
- $(this.formId).show();
116
- Form.enable( $(this.formId));
117
- this.enable = true;
118
- return true;
119
- }
120
- return false;
121
- },
122
- disableForm : function(){
123
- if(this.enable ){
124
- $(this.formId).hide();
125
- Form.disable( $(this.formId));
126
- this.enable = false;
127
- return true;
128
- }
129
- return false;
130
- },
131
- togglePaymentForm : function (){
132
- if($(BancaSellaForm.radioBancaSella).checked){
133
- BancaSellaForm.enableForm();
134
- }else{
135
- BancaSellaForm.disableForm();
136
- }
137
- return false;
138
- },
139
- paymentPageLoad : function( Result ){
140
- if(Result.ErrorCode != 10){
141
- //l'iframe non è stato creato
142
- if(!this.enableFormToIframe && this.isRecurringProfile){
143
- //se il pagamento era per un profilo ricorrente allora rimuovo la form
144
- BancaSellaForm.removePaymentMethod();
145
- return;
146
- }else{
147
- BancaSellaForm.toggleStatusForm(false);
148
- }
149
- }else{
150
- BancaSellaForm.toggleStatusForm(true);
151
- }
152
- BancaSellaForm.hideWait();
153
- BancaSellaForm.unlockPlaceOrder();
154
- },
155
- paymentPageLoadToOrder : function( Result ){
156
- if(Result.ErrorCode != 10){
157
- if(!BancaSellaForm.enableFormToIframe && BancaSellaForm.isRecurringProfile){
158
- //se il pagamento era per un profilo ricorrente allora rimuovo la form
159
- BancaSellaForm.removePaymentMethod();
160
- return;
161
- }else{
162
- BancaSellaForm.toggleStatusForm(false);
163
- }
164
- }else{
165
- BancaSellaForm.toggleStatusForm(true);
166
- IWD.OPC.saveOrder();
167
- IWD.OPC.Plugin.dispatch('savePaymentAfter');
168
- }
169
- BancaSellaForm.hideWait();
170
- },
171
- paymentPageLoadToSaveOrder : function( Result ){
172
-
173
- BancaSellaForm.paymentPageLoad(Result);
174
- IWD.OPC.saveOrder();
175
-
176
- },
177
- sendPaymentIframe : function (){
178
- BancaSellaForm.showWait();
179
- BancaSellaForm.GestPayExternalClass.SendPayment ({
180
- CC : BancaSellaForm.ccData.cc,
181
- EXPMM : BancaSellaForm.ccData.expmm,
182
- EXPYY : BancaSellaForm.ccData.expyy,
183
- CVV2 : BancaSellaForm.ccData.cvv2,
184
- Name: BancaSellaForm.ccData.name,
185
- Email: BancaSellaForm.ccData.email
186
- },
187
- function ( Result ) {
188
- BancaSellaForm.hideWait();
189
- BancaSellaForm.analizeResponse.delay(0.8,Result);
190
- }
191
- );
192
- return true;
193
- },
194
- analizeResponse : function(Result){
195
- if (Result.ErrorCode != 0){
196
- if (Result.ErrorCode == 8006){
197
- //3D Transaction
198
- var TransKey = Result.TransKey;
199
- var VBVRisp = Result.VBVRisp;
200
- BancaSellaForm.call3dSecure ( TransKey, VBVRisp );
201
- }else{
202
-
203
- var idErrorInput = '';
204
- if(Result.ErrorCode == 1119 || Result.ErrorCode == 1120){
205
- idErrorInput= BancaSellaForm.idStart+'_cc_number';
206
- }else
207
- if(Result.ErrorCode == 1124 || Result.ErrorCode == 1126){
208
- idErrorInput= BancaSellaForm.idStart+'_cc_exp_mm'
209
- } else
210
- if(Result.ErrorCode == 1125){
211
- idErrorInput= BancaSellaForm.idStart+'_cc_exp_yy'
212
- }else
213
- if(Result.ErrorCode == 1149){
214
- idErrorInput= BancaSellaForm.idStart+'_cc_cvv'
215
- }else
216
- {
217
- //altri errori, uno dei possibili 4707
218
- Dialog.alert(Result.ErrorDescription,
219
- {
220
- className:'magento',
221
- width:300,
222
- height:90,
223
- zIndex:1000,
224
- okLabel: Translator.translate('Complete payment on Banca Sella website'),
225
- buttonClass: "scalable",
226
- id: "alertRedirect",
227
- title: Translator.translate('Payment authorization error'),
228
- onOk: BancaSellaForm.redirectPaymentPage
229
- }
230
- );
231
- return false;
232
- }
233
- BancaSellaForm.showModalDialogCC(idErrorInput, Result.ErrorDescription);
234
- return false;
235
- }
236
- }else{
237
- //pagamento effettuato con successo oppure l'utente ha annullato il 3dsecure;
238
- setLocation(BancaSellaForm.successRedirect + '?a='+ BancaSellaForm.merchantId + '&b='+ Result.EncryptedString);
239
- return;
240
- }
241
- },
242
- call3dSecure : function (TransKey, VBVRisp){
243
- BancaSellaForm.transKey=TransKey;
244
- var a = this.merchantId;
245
- var b = VBVRisp;
246
- var c= BancaSellaForm.confirmPage;
247
- var definitiveUrl = BancaSellaForm.authPage+'?a='+a+'&b='+b+'&c='+c ;
248
- BancaSellaForm.showModal(definitiveUrl);
249
- },
250
- redirectPaymentPage : function (){
251
- if(BancaSellaForm.isRecurringProfile){
252
- //il pagamento ricorrente non puo essere effettuato su bancasella
253
- setLocation(BancaSellaForm.redirectAfterIframe);
254
- }else{
255
- setLocation(BancaSellaForm.successRedirect);
256
- }
257
- return;
258
- },
259
- showModal : function (url)
260
- {
261
- this.modal3d = new Window(
262
- {
263
- className:'magento',
264
- id:'gestpay_window',
265
- title:Translator.translate('3D secure'),
266
- url:url,
267
- width:400,
268
- height:400,
269
- zIndex:1000,
270
- minimizable: false,
271
- maximizable : false,
272
- closable:false,
273
- destroyOnClose:true,
274
- recenterAuto:true
275
- });
276
- this.modal3d.setZIndex(1000);
277
- this.modal3d.showCenter(true);
278
- },
279
- //chiamata dall'iframe e non in questa pagina
280
- sendPares : function (pares){
281
- this.modal3d.close();
282
- BancaSellaForm.showWait.delay(0.8);
283
- this.GestPayExternalClass.SendPayment ({
284
- PARes : pares ,
285
- TransKey : BancaSellaForm.transKey
286
- },
287
- function ( Result ) {
288
- BancaSellaForm.hideWait();
289
- BancaSellaForm.analizeResponse.delay(0.8,Result);
290
- }
291
- );
292
- return false;
293
- },
294
- showModalDialogCC : function( id, message ){
295
- var form = BancaSellaForm.realForm;
296
-
297
- BancaSellaForm.populateForm(form,id,false);
298
-
299
- BancaSellaForm.checkAndCloseDialogCC();
300
-
301
- if (!BancaSellaForm.dialogCC){
302
-
303
- BancaSellaForm.dialogCC = Dialog.alert('<div id="modal-form"><ul class="form-list">'+form.innerHTML+'</ul></div>',
304
- {
305
- className:'magento',
306
- closeOnEsc:false,
307
- width:300,
308
- height:400,
309
- zIndex:1000,
310
- okLabel: Translator.translate('Send Credit Card Data'),
311
- buttonClass: "scalable",
312
- id: "dialogcc",
313
- title: Translator.translate('Please correct the highlighted fields'),
314
- onOk: function (){
315
- var validator = new Validation($('modal-form'));
316
- if (!validator.validate())
317
- return false;
318
- BancaSellaForm.saveDataCC($('modal-form'));
319
- BancaSellaForm.sendPaymentIframe.delay(0.8);
320
- return true;
321
- }
322
- }
323
- );
324
- }
325
- alert(message);
326
- },
327
- showWait : function(){
328
- IWD.OPC.Checkout.showLoader();
329
- IWD.OPC.Checkout.lockPlaceOrder();
330
- },
331
- hideWait: function(){
332
- IWD.OPC.Checkout.hideLoader();
333
- IWD.OPC.Checkout.unlockPlaceOrder();
334
- },
335
- lockPlaceOrder: function(){
336
- IWD.OPC.Checkout.lockPlaceOrder();
337
- },
338
- unlockPlaceOrder: function(){
339
- IWD.OPC.Checkout.unlockPlaceOrder();
340
- },
341
- saveDataCC :function (form){
342
- BancaSellaForm.ccData=[];
343
- BancaSellaForm.ccData.cc = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_number').first());
344
- BancaSellaForm.ccData.expmm = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_exp_mm').first());
345
- BancaSellaForm.ccData.expyy = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_exp_yy').first());
346
- BancaSellaForm.ccData.cvv2 = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_cvv').first());
347
- BancaSellaForm.ccData.name = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_name').first());
348
- BancaSellaForm.ccData.email = $F(form.getElementsBySelector('#'+BancaSellaForm.idStart+'_cc_email').first());
349
- return true;
350
- },
351
- populateForm:function(form,id,enable){
352
- Form.getElements(form).each(function (input){
353
- input.disabled=enable;
354
- if(input.id == id){
355
- input.addClassName('validation-failed');
356
- }else {
357
- input.removeClassName('validation-failed');
358
- }
359
- switch (input.id){
360
- case BancaSellaForm.idStart+'_cc_number':
361
- input.setAttribute('value',BancaSellaForm.ccData.cc);
362
- break;
363
- case BancaSellaForm.idStart+'_cc_exp_mm':
364
- options = input.childElements();
365
- len = options.length;
366
- for (var i = 0; i < len; i++) {
367
- if(options[i].value == BancaSellaForm.ccData.expmm){
368
- options[i].setAttribute('selected',true);
369
- }
370
- }
371
- break;
372
- case BancaSellaForm.idStart+'_cc_exp_yy':
373
- options = input.childElements();
374
- len = options.length;
375
- for (var i = 0; i < len; i++) {
376
- if(options[i].value == BancaSellaForm.ccData.expyy){
377
- options[i].setAttribute('selected',true);
378
- }
379
- }
380
- break;
381
- case BancaSellaForm.idStart+'_cc_cvv':
382
- input.setAttribute('value',BancaSellaForm.ccData.cvv2);
383
- break;
384
- case BancaSellaForm.idStart+'_cc_name':
385
- input.setAttribute('value',BancaSellaForm.ccData.name);
386
- break;
387
- case BancaSellaForm.idStart+'_cc_email':
388
- input.setAttribute('value',BancaSellaForm.ccData.email);
389
- break;
390
- default :
391
- console.log('non ho trovato '+ input.id);
392
- }
393
- });
394
- },
395
- checkAndCloseDialogCC : function(){
396
- if(BancaSellaForm.dialogCC){
397
- Windows.close('dialogcc');
398
- BancaSellaForm.dialogCC=false;
399
- }
400
- },
401
- removePaymentMethod : function(){
402
- $(this.formId).hide();
403
- var $paymentForm = $('p_method_' + this.code);
404
- $paymentForm.setAttribute('disabled','disabled');
405
- $paymentForm.up('dt').hide();
406
- },
407
- createPagePaymentToOrder: function (callSendOrder){
408
- IWD.OPC.Checkout.showLoader();
409
- IWD.OPC.Checkout.lockPlaceOrder();
410
- if(callSendOrder){
411
- BancaSellaForm.GestPayExternalClass.CreatePaymentPage( BancaSellaForm.merchantId, BancaSellaForm.stringEncrypt, BancaSellaForm.paymentPageLoadToOrder);
412
- }
413
- else{
414
- BancaSellaForm.GestPayExternalClass.CreatePaymentPage( BancaSellaForm.merchantId, BancaSellaForm.stringEncrypt, BancaSellaForm.paymentPageLoad);
415
- }
416
- }
417
- };
418
- }
419
-
420
- // define jquery
421
- if(typeof($j_opc) == 'undefined' || $j_opc == undefined || !$j_opc){
422
- $j_opc = false;
423
-
424
- if(typeof($ji) != 'undefined' && $ji != undefined && $ji)
425
- $j_opc = $ji; // from iwd_all 2.x
426
- else{
427
- if(typeof($j) != 'undefined' && $j != undefined && $j)
428
- $j_opc = $j; // from default magento 1.9
429
- else{
430
- if(typeof(jQuery) != 'undefined' && jQuery != undefined && jQuery)
431
- $j_opc = jQuery;
432
- }
433
- }
434
- }
435
-
436
- if(typeof IWD.OPC != 'undefined'){
437
-
438
- IWD.OPC.prepareOrderResponse = function (response){
439
- IWD.OPC.Checkout.xhr = null;
440
- if (typeof(response.error) != "undefined" && response.error!=false){
441
- IWD.OPC.Checkout.hideLoader();
442
- IWD.OPC.Checkout.unlockPlaceOrder();
443
- IWD.OPC.saveOrderStatus = false;
444
- $j_opc('.opc-message-container').html(response.error);
445
- $j_opc('.opc-message-wrapper').show();
446
- IWD.OPC.Plugin.dispatch('error');
447
- return;
448
- }
449
-
450
- if (typeof(response.error_messages) != "undefined" && response.error_messages!=false){
451
- IWD.OPC.Checkout.hideLoader();
452
- IWD.OPC.Checkout.unlockPlaceOrder();
453
-
454
- IWD.OPC.saveOrderStatus = false;
455
- $j_opc('.opc-message-container').html(response.error_messages);
456
- $j_opc('.opc-message-wrapper').show();
457
- IWD.OPC.Plugin.dispatch('error');
458
- return;
459
- }
460
-
461
-
462
-
463
- if (typeof(response.update_section) != "undefined"){
464
- IWD.OPC.Checkout.hideLoader();
465
- IWD.OPC.Checkout.unlockPlaceOrder();
466
-
467
- //create catch for default logic - for not spam errors to console
468
- try{
469
- $j_opc('#checkout-' + response.update_section.name + '-load').html(response.update_section.html);
470
- }catch(e){
471
-
472
- }
473
- IWD.OPC.prepareExtendPaymentForm();
474
- $j_opc('#payflow-advanced-iframe').show();
475
- $j_opc('#payflow-link-iframe').show();
476
- $j_opc('#hss-iframe').show();
477
- }
478
-
479
- if(!BancaSellaForm.lock && ($(BancaSellaForm.radioBancaSella).checked)){
480
- IWD.OPC.prepareExtendPaymentForm();
481
- $j_opc('.opc-col-right').find('h3').first().text(Translator.translate('Please wait...'));
482
- $j_opc('#opc-review-block').html('<div><p>'+Translator.translate('You are waiting the completion of payment')+'</p></div>');
483
-
484
- if (response.redirect) {
485
- BancaSellaForm.redirectAfterIframe = response.redirect;
486
- }
487
-
488
- BancaSellaForm.saveDataCC(BancaSellaForm.realForm);
489
- //inviamo i dati della carta
490
- BancaSellaForm.sendPaymentIframe();
491
- }else{
492
- if (typeof(response.redirect) !="undefined"){
493
- if (response.redirect!==false){
494
- setLocation(response.redirect);
495
- return;
496
- }
497
- }
498
- }
499
- IWD.OPC.Checkout.hideLoader();
500
- IWD.OPC.Checkout.unlockPlaceOrder();
501
-
502
- IWD.OPC.Plugin.dispatch('responseSaveOrder', response);
503
- };
504
- IWD.OPC.preparePaymentResponse = function(response){
505
-
506
- IWD.OPC.Checkout.xhr = null;
507
-
508
- IWD.OPC.agreements = $j_opc('#checkout-agreements').serializeArray();
509
-
510
- IWD.OPC.getSubscribe();
511
-
512
- if (typeof(response.review)!= "undefined"){
513
- IWD.OPC.Decorator.updateGrandTotal(response);
514
- $j_opc('#opc-review-block').html(response.review);
515
-
516
- IWD.OPC.Checkout.removePrice();
517
-
518
- // need to recheck subscribe and agreenet checkboxes
519
- IWD.OPC.recheckItems();
520
- }
521
-
522
- IWD.OPC.Checkout.hideLoader();
523
- IWD.OPC.Checkout.unlockPlaceOrder();
524
-
525
- if (typeof(response.error) != "undefined"){
526
-
527
- IWD.OPC.Plugin.dispatch('error');
528
-
529
- $j_opc('.opc-message-container').html(response.error);
530
- $j_opc('.opc-message-wrapper').show();
531
- IWD.OPC.Checkout.hideLoader();
532
- IWD.OPC.Checkout.unlockPlaceOrder();
533
- IWD.OPC.saveOrderStatus = false;
534
-
535
- return;
536
- }
537
-
538
- //SOME PAYMENT METHOD REDIRECT CUSTOMER TO PAYMENT GATEWAY
539
- if (typeof(response.redirect) != "undefined" && IWD.OPC.saveOrderStatus===true){
540
- IWD.OPC.Checkout.xhr = null;
541
- IWD.OPC.Plugin.dispatch('redirectPayment', response.redirect);
542
- if (IWD.OPC.Checkout.xhr==null){
543
- setLocation(response.redirect);
544
- }
545
- else
546
- {
547
- IWD.OPC.Checkout.hideLoader();
548
- IWD.OPC.Checkout.unlockPlaceOrder();
549
- }
550
-
551
- return;
552
- }
553
-
554
-
555
- if(typeof(response.encrypt_string) != "undefined" ){
556
-
557
- if (typeof IWD.OPC.Checkout.showLoader != "undefined"){
558
- IWD.OPC.Checkout.showLoader();
559
- }
560
- //aggiorno la stringa
561
- BancaSellaForm.stringEncrypt = response.encrypt_string;
562
-
563
- BancaSellaForm.createPagePaymentToOrder(IWD.OPC.saveOrderStatus===true);
564
-
565
- }else if (IWD.OPC.saveOrderStatus===true){
566
- IWD.OPC.saveOrder();
567
- }else{
568
- if (typeof IWD.OPC.Checkout.hideLoader != "undefined"){
569
- IWD.OPC.Checkout.hideLoader();
570
- }
571
- IWD.OPC.Checkout.unlockPlaceOrder();
572
- }
573
- IWD.OPC.Plugin.dispatch('savePaymentAfter');
574
- }
575
- }
576
-
577
- $j_opc.ajaxPrefilter(function( options ) {
578
- if(decodeURIComponent(options.data).indexOf('payment[method]=gestpaypro') != -1 ){
579
- //salvo i dati della carta nel oggetto
580
- BancaSellaForm.saveDataCC(BancaSellaForm.realForm);
581
-
582
- //rimuovo tutti i dati della carta dalla richiesta
583
- var splitItems= options.data.split('&');
584
- for(var i=0; i < splitItems.length; ++i){
585
- if(decodeURIComponent(splitItems[i]).indexOf('bancasella_iframe') == 0 ){
586
- splitItems.splice(i--,1);
587
- }
588
- }
589
- options.data = splitItems.join('&');
590
- }
591
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>EASYNOLOBANCASELLAPRO</name>
4
- <version>1.4.6.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -61,9 +61,9 @@
61
  &#xD;
62
  Please note: with this release the support for IWD one page checkout is unstable.</notes>
63
  <authors><author><name>Easy Nolo SpA</name><user>easy_nolo</user><email>alessio.damonti@sella.it</email></author></authors>
64
- <date>2017-02-22</date>
65
- <time>19:08:31</time>
66
- <contents><target name="magecommunity"><dir name="EasyNolo"><dir name="BancaSellaPro"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Gestpayinfo.php" hash="757a9fcc598903ef14f65ea60346973c"/><file name="Redinfo.php" hash="04e51c6969ae71afa2d97ea83a53c46a"/><file name="Riskifiedinfo.php" hash="be096697a36f22dd3e8b3a9aaad71437"/></dir></dir></dir><file name="Confirm3d.php" hash="1748f46552f38387d9ef7a206ef64994"/><file name="Form.php" hash="a8e2f0736a7753ab0b71855d0d40d68a"/><file name="Newroot.php" hash="37bd80f36e789a5337a3daff1d2cf7ff"/><file name="Redirect.php" hash="97ab12024835edc02493de228d57947c"/><dir name="Tokenization"><file name="List.php" hash="c429369a6bc2da9a21288339627c01aa"/><file name="Newtoken.php" hash="79340d48c433c20b8f920811aa14e8ac"/></dir><dir name="Utility"><file name="Text.php" hash="8453faf49af4d416492f98aa65b9868d"/></dir></dir><file name="Exception.php" hash="9de691c89f0eb1c280ef92c31d2aa6a8"/><dir name="Helper"><dir name="AlternativePayments"><file name="Ideal.php" hash="3fa26538914d9b088ba05d2c1361fef2"/><file name="Mybank.php" hash="599bb3d3f3ba6ea3b26f1e29f97bd52a"/><file name="Paypal.php" hash="8a02cea05c5c7c942858c774e9f32b03"/><file name="Sofort.php" hash="e715ba758ffebadbdef6122f6691993a"/></dir><file name="Baseclient.php" hash="9467261ed60b06ec2880741100c2c340"/><file name="Crypt.php" hash="2426982616bbabd8e472215ef467d1ab"/><file name="Data.php" hash="25c108a2cf883a8ca109c95cbcf89eb9"/><file name="Recurringprofile.php" hash="19300223aaa39527a9105fdc11a2dd7d"/><file name="Red.php" hash="d493b6a060a72e0c0ec5f432b96ab945"/><file name="Riskified.php" hash="ede6cc0d78d4f9506c553fdd190b63a2"/><file name="S2s.php" hash="834d7a8bf15e56c97657e06df0ba93d1"/></dir><dir name="Model"><file name="Gestpay.php" hash="bb6784bda7698e47e1c101450d03bdf8"/><file name="Observer.php" hash="62878d1a497eb59f45c2646c28fcf1b6"/><dir name="Resource"><dir name="Sales"><dir name="Order"><dir name="FingerPrint"><file name="Collection.php" hash="f7a7a232e6151cb83034281f843fba92"/></dir><file name="FingerPrint.php" hash="ffc79ae2661bc2afe460678de49c4248"/></dir></dir><dir name="Token"><file name="Collection.php" hash="e6b6104f94e9dcd2d28927090552ee61"/></dir><file name="Token.php" hash="3539976882da08550b612ae0316c7628"/></dir><dir name="Sales"><dir name="Order"><file name="FingerPrint.php" hash="a101ec48a1016362d8ac7ba8cc127939"/></dir><dir name="Recurring"><file name="Profile.php" hash="644520b275a0f535eb6b881d50a2e708"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Currency.php" hash="098d64776e12ec7599ff9339e5c504b5"/><file name="FraudOrderStatus.php" hash="a1217938da5d7e1a305d5c746e3ac16e"/><file name="Language.php" hash="92f4275a8911cf9e22fda7e22596fdd0"/><file name="OrderStatus.php" hash="00a4cad29a4de65b1129f38496b057b7"/><file name="PaymentAction.php" hash="c78defcf9655741b2c8423eee7f3fbeb"/><file name="TokenizationContext.php" hash="dfba2748ab39b4e47ddfafca6dce8363"/></dir></dir></dir><file name="Token.php" hash="24af355118b97004990358e5128ca56e"/><dir name="Webservice"><file name="Abstract.php" hash="3edc6e1eca436b52b74b080071326d01"/><file name="Wscryptdecrypt.php" hash="0da6aa1d6cba7e18720ad70f9ea4f2f5"/><file name="Wss2s.php" hash="64ae83ababa31e05e44160bc58763d92"/></dir></dir><dir name="_additional_structure"><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="easynolo_bancasellapro.xml" hash="b8cd400aa5cad187a460875a770594d2"/></dir><dir name="template"><dir name="easynolo"><dir name="bancasellapro"><dir name="gestpay"><file name="confirm3d.phtml" hash="8b7a1172989831dd741cd24608d4dce6"/><file name="form.phtml" hash="b620c85066f144cf41b7f7ed9bb4677a"/><file name="form_onepagecheckout.phtml" hash="93ae9ef2beabb96c8dde20ecf1db01ad"/><file name="iframe.phtml" hash="3d9d8f37d5a3f18c4f5c6cb6d09ebbd0"/><file name="newtoken.phtml" hash="b9b6b99fcd4968961b42339ba9536429"/><file name="redirect.phtml" hash="16fc850ca5955abf0a13ad9e0feb5d47"/><file name="riskified.phtml" hash="6f8aabdc6e8bf2da5ae75a039b2746ff"/><dir name="token"><file name="list.phtml" hash="be694e81b2da8d1827ce11a84f980ff6"/></dir></dir><dir name="page"><file name="redirect.phtml" hash="b4355d7f50036ac9bbe065c797466edb"/></dir></dir></dir></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="layout"><file name="easynolo_bancasellapro.xml" hash="bfd503f91a9592e74f4e388ce02c86ca"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="EasyNolo_BancaSellaPro.xml" hash="822546906a1d54b670c2610cab8761fb"/><file name="EasyNolo_BancaSellaPro.xml.Onepage.txt" hash="08b9164dcc646e2629907b5e90b43fff"/></dir></dir><dir name="locale"><dir name="en_US"><file name="EasyNolo_BancaSellaPro.csv" hash="1a6de8af46571d3f12bb4ce82da04029"/></dir><dir name="it_IT"><file name="EasyNolo_BancaSellaPro.csv" hash="0a5a3a4e2bb19b1bfb89dbca7f4850de"/></dir></dir></dir><dir name="js"><dir name="bancasellapro"><file name="gestpayform.js" hash="d0f1c5a486b66a0cd2b348ecf4b04e0b"/><file name="gestpayform_onepagecheckout.js" hash="01ae24adfa9701e4b1aba794650524cb"/><file name="newtoken.js" hash="98bb4c44bf502c53159fe6314d7f84b5"/><file name="red_blackbox.js" hash="d6ced1d3b0aaca6b763b7c47b804cee2"/><file name="riskified.js" hash="b944efe6f4ff018dcc1cd51c65fc3962"/></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="bancasellapro"><file name="gestpay.png" hash="55262a719e16c5c430e9e5b3c9514ce8"/><file name="red.png" hash="8d66e8c43c23f2665a85da5cc8287f0a"/><file name="riskified.png" hash="fb954640772e6e5f086541af5a99933c"/></dir><file name=".DS_Store" hash="f7847ee6fe55e78f563bb8eb8ff98eb0"/></dir><file name=".DS_Store" hash="81c7b110dc744add1c8adfe8d840f168"/></dir><file name=".DS_Store" hash="6532038dadb62592144f6493050d41a4"/></dir><file name=".DS_Store" hash="6532038dadb62592144f6493050d41a4"/></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="easynolo_bancasella"><file name="wait.gif" hash="c717328261f92d92c1b1f550d222e0e4"/></dir></dir><dir name="js"><dir name="easynolo_bancasella"><file name="gestpayform_onepagecheckout.js" hash="cb5f6557891d62a8d1036ac391daa376"/></dir></dir></dir></dir></dir><file name=".DS_Store" hash="45d69d6eb93bfa61459ebff9cbabcca1"/></dir><file name=".DS_Store" hash="5035bbba8a0f9b65ba299644037d06e4"/></dir><dir name="controllers"><file name="GestpayController.php" hash="dcac2e7116c5df57836ad7882656509e"/><file name="JsonController.php" hash="161a211f82dc838561250e071d6a0adb"/><file name="TokenizationController.php" hash="c6f33d49764033dc800186f764924802"/></dir><dir name="etc"><file name="config.xml" hash="e49c28a61e9aa647ede810bdcbb02862"/><file name="jstranslator.xml" hash="920aae1d6d4503df794d8830b60e500e"/><file name="system.xml" hash="0f460e922490122b3c8c73394902584a"/></dir><dir name="sql"><dir name="easynolo_bancasellapro_setup"><file name="install-1.3.0.php" hash="aa542fc162f55557dbaf3f93165b6944"/><file name="upgrade-1.3.0-1.3.1.php" hash="43f9171d7beeaf6b350f76778bb2eb35"/><file name="upgrade-1.4.2-1.4.3.php" hash="8b37559eb7129dab7705d4a0a9729d6a"/><file name="upgrade-1.4.3-1.4.4.php" hash="0b51164f6b9433ff3d51b7e3257025f4"/><file name="upgrade-1.4.4-1.4.5.php" hash="abb3f09e985c6911b0576a16812242ee"/><file name="upgrade-1.4.5-1.4.6.php" hash="aa1878bb0a9970e68fa9502e4380981a"/></dir></dir><file name=".DS_Store" hash="52cbad6360a0516bba6a86a3187846e7"/><file name=".project" hash="95ae41fab13d551617313d17856e6998"/></dir><file name=".DS_Store" hash="4969bb9919a3a8a4b531eafa1dadc929"/></dir></target></contents>
67
  <compatible/>
68
  <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
69
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>EASYNOLOBANCASELLAPRO</name>
4
+ <version>1.4.6.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
61
  &#xD;
62
  Please note: with this release the support for IWD one page checkout is unstable.</notes>
63
  <authors><author><name>Easy Nolo SpA</name><user>easy_nolo</user><email>alessio.damonti@sella.it</email></author></authors>
64
+ <date>2017-03-22</date>
65
+ <time>16:12:53</time>
66
+ <contents><target name="magecommunity"><dir name="EasyNolo"><dir name="BancaSellaPro"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Gestpayinfo.php" hash="757a9fcc598903ef14f65ea60346973c"/><file name="Redinfo.php" hash="04e51c6969ae71afa2d97ea83a53c46a"/><file name="Riskifiedinfo.php" hash="be096697a36f22dd3e8b3a9aaad71437"/></dir></dir></dir><file name="Confirm3d.php" hash="1748f46552f38387d9ef7a206ef64994"/><file name="Form.php" hash="a8e2f0736a7753ab0b71855d0d40d68a"/><file name="Newroot.php" hash="37bd80f36e789a5337a3daff1d2cf7ff"/><file name="Redirect.php" hash="97ab12024835edc02493de228d57947c"/><dir name="Tokenization"><file name="List.php" hash="c429369a6bc2da9a21288339627c01aa"/><file name="Newtoken.php" hash="79340d48c433c20b8f920811aa14e8ac"/></dir><dir name="Utility"><file name="Text.php" hash="8453faf49af4d416492f98aa65b9868d"/></dir></dir><file name="Exception.php" hash="9de691c89f0eb1c280ef92c31d2aa6a8"/><dir name="Helper"><dir name="AlternativePayments"><file name="Ideal.php" hash="3fa26538914d9b088ba05d2c1361fef2"/><file name="Mybank.php" hash="599bb3d3f3ba6ea3b26f1e29f97bd52a"/><file name="Paypal.php" hash="8a02cea05c5c7c942858c774e9f32b03"/><file name="Sofort.php" hash="e715ba758ffebadbdef6122f6691993a"/></dir><file name="Baseclient.php" hash="9467261ed60b06ec2880741100c2c340"/><file name="Crypt.php" hash="2426982616bbabd8e472215ef467d1ab"/><file name="Data.php" hash="25c108a2cf883a8ca109c95cbcf89eb9"/><file name="Recurringprofile.php" hash="19300223aaa39527a9105fdc11a2dd7d"/><file name="Red.php" hash="d493b6a060a72e0c0ec5f432b96ab945"/><file name="Riskified.php" hash="ede6cc0d78d4f9506c553fdd190b63a2"/><file name="S2s.php" hash="834d7a8bf15e56c97657e06df0ba93d1"/></dir><dir name="Model"><file name="Gestpay.php" hash="bb6784bda7698e47e1c101450d03bdf8"/><file name="Observer.php" hash="6d7d95bf760a965f2daa0bface974390"/><dir name="Resource"><dir name="Sales"><dir name="Order"><dir name="FingerPrint"><file name="Collection.php" hash="f7a7a232e6151cb83034281f843fba92"/></dir><file name="FingerPrint.php" hash="ffc79ae2661bc2afe460678de49c4248"/></dir></dir><dir name="Token"><file name="Collection.php" hash="e6b6104f94e9dcd2d28927090552ee61"/></dir><file name="Token.php" hash="3539976882da08550b612ae0316c7628"/></dir><dir name="Sales"><dir name="Order"><file name="FingerPrint.php" hash="a101ec48a1016362d8ac7ba8cc127939"/></dir><dir name="Recurring"><file name="Profile.php" hash="644520b275a0f535eb6b881d50a2e708"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Currency.php" hash="098d64776e12ec7599ff9339e5c504b5"/><file name="FraudOrderStatus.php" hash="a1217938da5d7e1a305d5c746e3ac16e"/><file name="Language.php" hash="92f4275a8911cf9e22fda7e22596fdd0"/><file name="OrderStatus.php" hash="00a4cad29a4de65b1129f38496b057b7"/><file name="PaymentAction.php" hash="c78defcf9655741b2c8423eee7f3fbeb"/><file name="TokenizationContext.php" hash="dfba2748ab39b4e47ddfafca6dce8363"/></dir></dir></dir><file name="Token.php" hash="24af355118b97004990358e5128ca56e"/><dir name="Webservice"><file name="Abstract.php" hash="3edc6e1eca436b52b74b080071326d01"/><file name="Wscryptdecrypt.php" hash="0da6aa1d6cba7e18720ad70f9ea4f2f5"/><file name="Wss2s.php" hash="64ae83ababa31e05e44160bc58763d92"/></dir></dir><dir name="_additional_structure"><dir name="js"><dir name="bancasellapro"><file name="gestpayform.js" hash="d0f1c5a486b66a0cd2b348ecf4b04e0b"/><file name="newtoken.js" hash="98bb4c44bf502c53159fe6314d7f84b5"/><file name="red_blackbox.js" hash="d6ced1d3b0aaca6b763b7c47b804cee2"/><file name="riskified.js" hash="b944efe6f4ff018dcc1cd51c65fc3962"/></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><file name=".DS_Store" hash="6532038dadb62592144f6493050d41a4"/></dir><file name=".DS_Store" hash="6532038dadb62592144f6493050d41a4"/></dir><file name=".DS_Store" hash="45d69d6eb93bfa61459ebff9cbabcca1"/></dir><file name=".DS_Store" hash="5035bbba8a0f9b65ba299644037d06e4"/></dir><dir name="controllers"><file name="GestpayController.php" hash="dcac2e7116c5df57836ad7882656509e"/><file name="JsonController.php" hash="161a211f82dc838561250e071d6a0adb"/><file name="TokenizationController.php" hash="c6f33d49764033dc800186f764924802"/></dir><dir name="etc"><file name="config.xml" hash="e49c28a61e9aa647ede810bdcbb02862"/><file name="jstranslator.xml" hash="920aae1d6d4503df794d8830b60e500e"/><file name="system.xml" hash="0f460e922490122b3c8c73394902584a"/></dir><dir name="sql"><dir name="easynolo_bancasellapro_setup"><file name="install-1.3.0.php" hash="aa542fc162f55557dbaf3f93165b6944"/><file name="upgrade-1.3.0-1.3.1.php" hash="43f9171d7beeaf6b350f76778bb2eb35"/><file name="upgrade-1.4.2-1.4.3.php" hash="8b37559eb7129dab7705d4a0a9729d6a"/><file name="upgrade-1.4.3-1.4.4.php" hash="0b51164f6b9433ff3d51b7e3257025f4"/><file name="upgrade-1.4.4-1.4.5.php" hash="abb3f09e985c6911b0576a16812242ee"/><file name="upgrade-1.4.5-1.4.6.php" hash="aa1878bb0a9970e68fa9502e4380981a"/></dir></dir><file name=".DS_Store" hash="52cbad6360a0516bba6a86a3187846e7"/><file name=".project" hash="95ae41fab13d551617313d17856e6998"/></dir><file name=".DS_Store" hash="bd0431031c619d454dca8c687aaf9254"/></dir></target></contents>
67
  <compatible/>
68
  <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
69
  </package>