payitsimplepayment - Version 2.0.6

Version Notes

Support multi-currency for depending on cart total.

Download this release

Release Info

Developer Eric Benayoun
Extension payitsimplepayment
Version 2.0.6
Comparing to
See all releases


Code changes from version 2.0.5 to 2.0.6

app/code/community/PayItSimple/Payment/Block/Adminhtml/Addresses.php CHANGED
@@ -66,7 +66,7 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
66
<tbody id="tier_price_container">
67
<tr>
68
<td>
69
- From<br><label>'. $this->_getCurrencySymbol() .'</label> <input style="max-width:90%!important;" type="text" class="doctv_from" name="doctv_from" /><br>To<br><label>'. $this->_getCurrencySymbol() .'<input type="text" style="max-width:90%!important;" name="doctv_to" class="doctv_to" />
70
</td>
71
<td>
72
<select id="" name="doctv_installments" class=" select multiselect doctv_installments" size="10" multiple="multiple">
@@ -83,10 +83,10 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
83
<option value="12">12 Installments</option>
84
</select>
85
</td>
86
- <td>'.
87
- /*<select id="" name="doctv_currency" class=" select doctv_currency">
88
- '.$this->_getCurrencies().'*/
89
- $this->_getBaseCurrency().'
90
</td>
91
<td>
92
<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>
@@ -107,6 +107,7 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
107
protected function getTableHtmlWhenNotEmpty($doctv)
108
{
109
$doctv = json_decode($doctv);
110
111
$html = '<table class="data border splitit" id="tiers_table" cellspacing="0" border="1">
112
<div class="tiers_table_overlay"></div>
@@ -129,7 +130,7 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
129
$rowHtml = "";
130
foreach ($doctv as $key => $value) {
131
$rowHtml .= '<tr>';
132
- $rowHtml .= '<td> From<br><label>'. $this->_getCurrencySymbol() .'</label> <input type="text" style="max-width:90%!important;" class="doctv_from" name="doctv_from" value="'.$value->doctv->from.'" /><br>To<br><label>'. $this->_getCurrencySymbol() .'</label> <input type="text" style="max-width:90%!important;" name="doctv_to" class="doctv_to" value="'.$value->doctv->to.'"/> </td>';
133
$rowHtml .= '<td>
134
<select id="" name="doctv_installments" class=" select multiselect doctv_installments" size="10" multiple="multiple">';
135
$i = 2;
@@ -145,13 +146,12 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
145
}
146
$rowHtml .= '</select></td>';
147
148
-
149
150
- /*$rowHtml .= '<td>
151
<select id="" name="doctv_currency" class=" select doctv_currency">
152
'.$this->_getSelectedCurrency($value->doctv->currency).'
153
- </td>'; */
154
- $rowHtml .= '<td>'.$this->_getBaseCurrency().'</td>';
155
$rowHtml .= '<td>
156
<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>
157
</td>
@@ -233,6 +233,26 @@ class PayItSimple_Payment_Block_Adminhtml_Addresses extends Mage_Adminhtml_Block
233
protected function _getCurrencySymbol(){
234
return Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
235
}
236
237
238
}
66
<tbody id="tier_price_container">
67
<tr>
68
<td>
69
+ From<br><label>'. $this->_getFirstAvailableCurrencySymbol() .'</label> <input style="max-width:90%!important;" type="text" class="doctv_from" name="doctv_from" /><br>To<br><label>'. $this->_getFirstAvailableCurrencySymbol() .'<input type="text" style="max-width:90%!important;" name="doctv_to" class="doctv_to" />
70
</td>
71
<td>
72
<select id="" name="doctv_installments" class=" select multiselect doctv_installments" size="10" multiple="multiple">
83
<option value="12">12 Installments</option>
84
</select>
85
</td>
86
+ <td>
87
+ <select id="" name="doctv_currency" class=" select doctv_currency">
88
+ '.$this->_getCurrencies().'
89
+
90
</td>
91
<td>
92
<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>
107
protected function getTableHtmlWhenNotEmpty($doctv)
108
{
109
$doctv = json_decode($doctv);
110
+ $currencySymbolsArray = json_decode($this->_getAvailableCurrencySymbolsArray(),true);
111
112
$html = '<table class="data border splitit" id="tiers_table" cellspacing="0" border="1">
113
<div class="tiers_table_overlay"></div>
130
$rowHtml = "";
131
foreach ($doctv as $key => $value) {
132
$rowHtml .= '<tr>';
133
+ $rowHtml .= '<td> From<br><label>'. $currencySymbolsArray[$value->doctv->currency] .'</label> <input type="text" style="max-width:90%!important;" class="doctv_from" name="doctv_from" value="'.$value->doctv->from.'" /><br>To<br><label>'. $currencySymbolsArray[$value->doctv->currency] .'</label> <input type="text" style="max-width:90%!important;" name="doctv_to" class="doctv_to" value="'.$value->doctv->to.'"/> </td>';
134
$rowHtml .= '<td>
135
<select id="" name="doctv_installments" class=" select multiselect doctv_installments" size="10" multiple="multiple">';
136
$i = 2;
146
}
147
$rowHtml .= '</select></td>';
148
149
150
+ $rowHtml .= '<td>
151
<select id="" name="doctv_currency" class=" select doctv_currency">
152
'.$this->_getSelectedCurrency($value->doctv->currency).'
153
+ </td>';
154
+ //$rowHtml .= '<td>'.$this->_getBaseCurrency().'</td>';
155
$rowHtml .= '<td>
156
<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>
157
</td>
233
protected function _getCurrencySymbol(){
234
return Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
235
}
236
+
237
+ protected function _getAvailableCurrencySymbolsArray(){
238
+ $codes = Mage::app()->getStore()->getAvailableCurrencyCodes(true);
239
+ $currencySymbolsArray = [];
240
+ foreach ($codes as $key => $value) {
241
+ $currencySymbolsArray[$value] = Mage::app()->getLocale()->currency($value)->getSymbol();
242
+ }
243
+ return json_encode($currencySymbolsArray);
244
+ }
245
+
246
+ protected function _getFirstAvailableCurrencySymbol(){
247
+ $codes = Mage::app()->getStore()->getAvailableCurrencyCodes(true);
248
+ $firstCurrencySymbol = [];
249
+ foreach ($codes as $key => $value) {
250
+ $firstCurrencySymbol = Mage::app()->getLocale()->currency($value)->getSymbol();
251
+ break;
252
+ }
253
+ return $firstCurrencySymbol;
254
+ }
255
+
256
257
258
}
app/code/community/PayItSimple/Payment/Model/PisMethod.php CHANGED
@@ -543,15 +543,20 @@ class PayItSimple_Payment_Model_PisMethod extends Mage_Payment_Model_Method_Cc
543
544
// Start Term and Condition Popup
545
$html .= '<div id="termAndConditionpopup" style=" ">
546
- <div class="popup-block">
547
- <div class="popup-content" style="">'.$this->getTermnConditionText().'
548
-
549
- </div>';
550
$html .= '<div class="popup-footer" style="">';
551
$html .= '<div id="payment-schedule-close-btn" class="popup-btn" style="">';
552
- $html .= '<div class="popup-btn-area" style=""><span id="termAndConditionpopupCloseBtn" class="popup-btn-icon" style="">Close</span></div>';
553
$html .= '</div>';
554
$html .= '</div>';
555
$html .= '</div>';
556
$html .= '</div>';
557
// Close Term and Condition Popup
543
544
// Start Term and Condition Popup
545
$html .= '<div id="termAndConditionpopup" style=" ">
546
+ <div class="popup-block">';
547
+
548
+ $html .= '<div class="popup-content" style="">';
549
+ // start close button on terms-condition popup
550
$html .= '<div class="popup-footer" style="">';
551
$html .= '<div id="payment-schedule-close-btn" class="popup-btn" style="">';
552
+ $html .= '<div class="popup-btn-area-terms" style=""><span id="termAndConditionpopupCloseBtn" class="popup-btn-icon-terms" style=""><img style="width:25px;" src="'. Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB, true ).'js/payitsimple/payitsimplepament/approval-popup-close.png"></span></div>';
553
$html .= '</div>';
554
$html .= '</div>';
555
+ // end close button on terms-condition popup
556
+ $html .= $this->getTermnConditionText().'
557
+
558
+ </div>';
559
+
560
$html .= '</div>';
561
$html .= '</div>';
562
// Close Term and Condition Popup
app/code/community/PayItSimple/Payment/controllers/PaymentController.php CHANGED
@@ -140,9 +140,9 @@ class PayItSimple_Payment_PaymentController extends Mage_Core_Controller_Front_A
140
141
if ($splititSessionId != ""){
142
$result = Mage::getSingleton("pis_payment/pisMethod")->installmentplaninit($api, $selectedInstallment);
143
if($result["status"]){
144
$response["status"] = true;
145
- $response["data"] = $result["data"];
146
}
147
if(isset($result["emptyFields"]) && $result["emptyFields"]){
148
$response["data"] = $result["data"];
140
141
if ($splititSessionId != ""){
142
$result = Mage::getSingleton("pis_payment/pisMethod")->installmentplaninit($api, $selectedInstallment);
143
+ $response["data"] = $result["data"];
144
if($result["status"]){
145
$response["status"] = true;
146
}
147
if(isset($result["emptyFields"]) && $result["emptyFields"]){
148
$response["data"] = $result["data"];
app/design/adminhtml/default/default/template/payitsimple/system/config/addresses.phtml CHANGED
@@ -10,8 +10,9 @@
10
11
12
<script type="text/javascript">
13
- //var currenyOptions = '<?php //echo $currenyOptions = $this->_getCurrencies(); ?>';
14
- var currenyOptions = '<?php echo $currenyOptions = $this->_getBaseCurrency(); ?>';
15
16
jQuery(document).ready(function(){
17
if(jQuery('#payment_pis_cc-head').length > 0){
@@ -44,6 +45,8 @@ jQuery(document).ready(function(){
44
45
var doctv_from = parseFloat(jQuery(this).find(".doctv_from").val());
46
var doctv_to = parseFloat(jQuery(this).find(".doctv_to").val());
47
jQuery(this).find(".doctv_from").css("border","1px solid #ccc");
48
jQuery(this).find(".doctv_to").css("border","1px solid #ccc");
49
jQuery(this).find("select.doctv_installments").css("border","1px solid #ccc");
@@ -82,12 +85,17 @@ jQuery(document).ready(function(){
82
}
83
84
// validation that there are no overlaps with the periods
85
- fromToArr[i] = {};
86
- fromToArr[i]["from"] = doctv_from;
87
- fromToArr[i]["to"] = doctv_to;
88
- if(flag1 == 0 && Object.keys(fromToArr).length > 1){
89
- for(var j=0; j<Object.keys(fromToArr).length-1; j++){
90
- if((doctv_from >= fromToArr[j]["from"] && doctv_from <= fromToArr[j]["to"]) || (doctv_to >= fromToArr[j]["from"] && doctv_to <= fromToArr[j]["to"]) ){
91
console.log("forrrr");
92
jQuery(this).find(".doctv_from").css("border","1px solid red");
93
jQuery(this).find(".doctv_to").css("border","1px solid red");
@@ -95,12 +103,12 @@ jQuery(document).ready(function(){
95
overlaps++;
96
}
97
// check if there is gap between previous to and next from
98
- if((fromToArr[j]["to"]+1) != fromToArr[j+1]["from"]){
99
jQuery(this).find(".doctv_from").css("border","1px solid red");
100
jQuery(this).find(".doctv_to").css("border","1px solid red");
101
flag1++;
102
hasGap++;
103
- }
104
}
105
}
106
@@ -113,7 +121,7 @@ jQuery(document).ready(function(){
113
fromBigger++;
114
}
115
116
- });
117
}
118
119
//
@@ -134,13 +142,13 @@ jQuery(document).ready(function(){
134
alert("From amount should be lesser than To.");
135
}
136
else if(overlaps){
137
- alert("From and To amount should not Overlap");
138
}
139
else if(percentageFlag){
140
jQuery("#payment_pis_cc_percentage_of_order").css("border","1px solid red");
141
alert("Please enter Percentage of order % <= 50");
142
}else if(hasGap){
143
- alert("There should not be Gap between To and From amounts.");
144
}else{
145
alert('Please fill the required fields in Splitit section "Depending on cart total"');
146
}
@@ -200,10 +208,10 @@ count = "";
200
+'</select>'
201
+'</td>'
202
+'<td>'
203
- /*+'<select id="" class="doctv_currency" name="doctv_currency" class=" select">'
204
+currenyOptions+
205
- +'</select>'*/
206
- +currenyOptions
207
+'</td>'
208
+'<td>'
209
+'<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>'
10
11
12
<script type="text/javascript">
13
+ var currenyOptions = '<?php echo $currenyOptions = $this->_getCurrencies(); ?>';
14
+ /*var currenyOptions = '<?php echo $currenyOptions = $this->_getBaseCurrency(); ?>';*/
15
+ var currencySymbolsArray = <?php echo $this->_getAvailableCurrencySymbolsArray(); ?>;
16
17
jQuery(document).ready(function(){
18
if(jQuery('#payment_pis_cc-head').length > 0){
45
46
var doctv_from = parseFloat(jQuery(this).find(".doctv_from").val());
47
var doctv_to = parseFloat(jQuery(this).find(".doctv_to").val());
48
+ var doctv_currency = jQuery(this).find(".doctv_currency").val();
49
+
50
jQuery(this).find(".doctv_from").css("border","1px solid #ccc");
51
jQuery(this).find(".doctv_to").css("border","1px solid #ccc");
52
jQuery(this).find("select.doctv_installments").css("border","1px solid #ccc");
85
}
86
87
// validation that there are no overlaps with the periods
88
+ if (!fromToArr.hasOwnProperty(doctv_currency)) {
89
+ fromToArr[doctv_currency] = {};
90
+ }
91
+ var countObj = Object.keys(fromToArr[doctv_currency]).length;
92
+ fromToArr[doctv_currency][countObj] = {};
93
+ fromToArr[doctv_currency][countObj]["from"] = doctv_from;
94
+ fromToArr[doctv_currency][countObj]["to"] = doctv_to;
95
+ fromToArr[doctv_currency][countObj]["currency"] = doctv_currency;
96
+ if(flag1 == 0 && Object.keys(fromToArr[doctv_currency]).length > 1){
97
+ for(var j=0; j<Object.keys(fromToArr[doctv_currency]).length-1; j++){
98
+ if(((doctv_from >= fromToArr[doctv_currency][j]["from"] && doctv_from <= fromToArr[doctv_currency][j]["to"]) || (doctv_to >= fromToArr[doctv_currency][j]["from"] && doctv_to <= fromToArr[doctv_currency][j]["to"])) && doctv_currency == fromToArr[doctv_currency][j]["currency"]){
99
console.log("forrrr");
100
jQuery(this).find(".doctv_from").css("border","1px solid red");
101
jQuery(this).find(".doctv_to").css("border","1px solid red");
103
overlaps++;
104
}
105
// check if there is gap between previous to and next from
106
+ if(((fromToArr[doctv_currency][j]["to"]+1) != fromToArr[doctv_currency][j+1]["from"]) && doctv_currency == fromToArr[doctv_currency][j]["currency"]){
107
jQuery(this).find(".doctv_from").css("border","1px solid red");
108
jQuery(this).find(".doctv_to").css("border","1px solid red");
109
flag1++;
110
hasGap++;
111
+ }
112
}
113
}
114
121
fromBigger++;
122
}
123
124
+ });//console.log(fromToArr);return;
125
}
126
127
//
142
alert("From amount should be lesser than To.");
143
}
144
else if(overlaps){
145
+ alert("From and To amount should not Overlap as per Currency");
146
}
147
else if(percentageFlag){
148
jQuery("#payment_pis_cc_percentage_of_order").css("border","1px solid red");
149
alert("Please enter Percentage of order % <= 50");
150
}else if(hasGap){
151
+ alert("There should not be Gap between To and From amounts as per Currency.");
152
}else{
153
alert('Please fill the required fields in Splitit section "Depending on cart total"');
154
}
208
+'</select>'
209
+'</td>'
210
+'<td>'
211
+ +'<select id="" class="doctv_currency" name="doctv_currency" class=" select">'
212
+currenyOptions+
213
+ +'</select>'
214
+ /*+currenyOptions*/
215
+'</td>'
216
+'<td>'
217
+'<button title="Delete Tier" type="button" class="scalable delete icon-btn delete-product-option" id="" onclick="deleteRow(this);"><span><span><span>Delete</span></span></span></button>'
app/design/frontend/base/default/template/payitsimple/splitprice.phtml CHANGED
@@ -18,7 +18,7 @@
18
$allowed_page = explode(",",Mage::getStoreConfig('payment/pis_cc/installment_price_on_pages'));
19
$divider = Mage::getStoreConfig('payment/pis_cc/installments_count');
20
$text = Mage::getStoreConfig('payment/pis_cc/installment_price_text');
21
-
22
23
if(Mage::getStoreConfig('payment/pis_cc/enable_installment_price')==1 && in_array($current_page, $allowed_page)){
24
if($current_page == "cart" || $current_page=="checkout"){
@@ -27,17 +27,23 @@
27
}else{
28
if($current_page == 'category'){
29
$_product = $this->getProduct();
30
- $segment = ROUND((float)$_product->getFinalPrice() / $divider,2);
31
echo $this->getChildHtml('child'.$this->getProduct()->getId());
32
}
33
if($current_page == 'product'){
34
$_product = $this->getProduct();
35
- $segment = ROUND((float)$_product->getFinalPrice() / $divider,2);
36
echo $this->getChildHtml('child'.$this->getProduct()->getId());
37
}
38
39
}
40
- echo "<span class='cart-installment' >quot;.$segment." x ".$divider." ".$text."</span>";
41
} else {
42
if($current_page == "cart" || $current_page=="checkout"){
43
echo $this->getChildHtml('child');
18
$allowed_page = explode(",",Mage::getStoreConfig('payment/pis_cc/installment_price_on_pages'));
19
$divider = Mage::getStoreConfig('payment/pis_cc/installments_count');
20
$text = Mage::getStoreConfig('payment/pis_cc/installment_price_text');
21
+ $currentCurrencyCode = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
22
23
if(Mage::getStoreConfig('payment/pis_cc/enable_installment_price')==1 && in_array($current_page, $allowed_page)){
24
if($current_page == "cart" || $current_page=="checkout"){
27
}else{
28
if($current_page == 'category'){
29
$_product = $this->getProduct();
30
+ $formattedPrice = Mage::helper('core')->currency($_product->getFinalPrice(), false, false);
31
+
32
+ $segment = ROUND((float)$formattedPrice / $divider,2);
33
+ //$segment = ROUND((float)$_product->getFinalPrice() / $divider,2);
34
echo $this->getChildHtml('child'.$this->getProduct()->getId());
35
}
36
if($current_page == 'product'){
37
$_product = $this->getProduct();
38
+ $formattedPrice = Mage::helper('core')->currency($_product->getFinalPrice(), false, false);
39
+
40
+ $segment = ROUND((float)$formattedPrice / $divider,2);
41
+ //$segment = ROUND((float)$_product->getFinalPrice() / $divider,2);
42
echo $this->getChildHtml('child'.$this->getProduct()->getId());
43
}
44
45
}
46
+ echo "<span class='cart-installmentss' >".$currentCurrencyCode.$segment." x ".$divider." ".$text."</span>";
47
} else {
48
if($current_page == "cart" || $current_page=="checkout"){
49
echo $this->getChildHtml('child');
package.xml CHANGED
@@ -1,18 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>payitsimplepayment</name>
4
- <version>2.0.5</version>
5
<stability>stable</stability>
6
<license>OSL v3.0</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Offer your customers interest-free credit card installment payments. Official extension.</summary>
10
<description>This extension allows ecommerce merchants to add an additional payment method to your checkout process. A Splitit button is added to your website for fast and easy checkout.&lt;br /&gt; It was carefully designed to meet all Magento best development practices and is compatible with all other extensions. This extension is free of charge.&lt;br /&gt;&lt;br /&gt; &lt;h3&gt;Signup for FREE&lt;/h3&gt; &lt;a href="http://payitsimple.com/register/"&gt;Signup with Splitit for FREE and start offering your customers interest-free installment payments on their existing credit cards.&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;</description>
11
- <notes>Support new APIs provided by Splitit.</notes>
12
<authors><author><name>Eric Benayoun</name><user>ericbena</user><email>ericb@splitit.com</email></author></authors>
13
- <date>2017-02-08</date>
14
- <time>11:36:16</time>
15
- <contents><target name="magecommunity"><dir name="PayItSimple"><dir name="Payment"><dir name="Block"><dir name="Adminhtml"><file name="Addresses.php" hash="baee55e66cab3c602137bf65885fdb13"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="4f726bf958620400bac66c0757717411"/></dir><file name="Notification.php" hash="27ac86d84fe3927c28abc6da018736cd"/></dir></dir></dir><dir name="Form"><file name="Pis.php" hash="b29945f92f5131ec71468636ce61dafe"/></dir><dir name="Info"><file name="Pis.php" hash="42cb4edb5ff208a1a3ee7612579a6165"/></dir></dir><dir name="Helper"><file name="Data.php" hash="1fba2ce41eb4f554e365d82424323ccd"/></dir><dir name="Model"><file name="Api.php" hash="c90275f29eca956e40264fa6f38cad4c"/><file name="Observer.php" hash="e12b8d880b038f3965325476862eeddf"/><file name="PisMethod.php" hash="f8a4d81169999891dafff9f4dedb23a7"/><dir name="Source"><file name="Action.php" hash="1390fb3dce78cf8eff1118df2ee5b997"/><file name="Cctype.php" hash="7f77a0c6729d0896c8ec250bb7f4fd49"/><file name="Firstpayment.php" hash="bd96f52609ba07f9b166e4bdcd1b8664"/><file name="Frontendpages.php" hash="526d1e6875b3092f1b946c5de81f7513"/><file name="Installments.php" hash="65b727e639308cba4241662a2040d6f3"/><file name="Selectinstallmentsetup.php" hash="4af3a6fc08ea94eb5b25837fb5fa40c7"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="PayitsimpleController.php" hash="7c757c70dd4b654997622d713dc73e66"/></dir><file name="PaymentController.php" hash="81f255a56ee44b05c28b788506982fcf"/></dir><dir name="etc"><file name="config.xml" hash="a208044c3af976ed3f1b084c85af81af"/><file name="system.xml" hash="0de65d9ed58f9f618be980c5e0ff711a"/></dir><dir name="sql"><dir name="pis_payment_setup"><file name="mysql4-install-1.0.0.php" hash="f2687e3adaa4654942a882287a0bf532"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PayItSimple_Payment.xml" hash="608e164d747a215efa2cf4d062693236"/></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payitsimple"><dir name="system"><dir name="config"><file name="addresses.phtml" hash="a9ae92199fafabd5a757c1d92248f035"/><file name="button.phtml" hash="cf9f1fd8b02d796a85156c0df605a4ba"/><file name="notification.phtml" hash="86940d0b8a6695c54daaf6b7918633dc"/></dir></dir></dir></dir><dir name="layout"><file name="payitsimple_notification.xml" hash="51da7978dbea5c9f9f5dc2c63caca786"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payitsimple"><dir name="form"><file name="method_faq.phtml" hash="96137f1fdfaa264a9b30ac18e20efe19"/><file name="pis.phtml" hash="9ac23b2fb5e357cb157de62706486e58"/></dir><file name="help.phtml" hash="1c2b0b2b65b4313b4382fb74a9d63844"/><file name="splitprice.phtml" hash="64779f269492bf43fdeefec23a2cddea"/><file name="terms.phtml" hash="f5a8ea332b4179622810fa759291e424"/></dir></dir><dir name="layout"><file name="pis_payment.xml" hash="396990452fc2ba83c2917f7abbfb9196"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="pis_checkout.css" hash="f26fccd33d6693f67b23f1b20d85a462"/></dir></dir></dir></dir></dir></target><target name="mage"><dir><dir name="js"><dir name="payitsimple"><file name="checkout.js" hash="6474d718a35f8d2b28ad9cda49ea4465"/><file name="jquery-1.12.4.js" hash="491d557f4d119677c4031639c7ec473c"/><file name="jquery-2.2.4.min.js" hash="2f6b11a7e914718e0290410e85366fe9"/><dir name="payitsimplepament"><file name="Amex_logo.png" hash="baa1ee84ce383983f6c6acb4057d62c0"/><file name="LearnMore.png" hash="4af0f9684c7098491b8a65bc2b9dd741"/><file name="MC_logo.png" hash="810349f2cbe27ba2de32b8976d64c004"/><file name="Splitit_by.png" hash="7e7a0d387efd84ca060a0996c8e7da86"/><file name="Visa_logo.png" hash="e39e0ff1010d2c15960ec54d001fe3bd"/><file name="approval-popup-close.png" hash="a4d99d95265e08d016edad958ab4f126"/><file name="opc-ajax-loader.gif" hash="f48ee069890b16455c3ddcacee9b5f75"/><file name="splitit_new_logo.png" hash="341acd95a1643e06701f9985bc2bd06c"/></dir></dir></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>payitsimplepayment</name>
4
+ <version>2.0.6</version>
5
<stability>stable</stability>
6
<license>OSL v3.0</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Offer your customers interest-free credit card installment payments. Official extension.</summary>
10
<description>This extension allows ecommerce merchants to add an additional payment method to your checkout process. A Splitit button is added to your website for fast and easy checkout.&lt;br /&gt; It was carefully designed to meet all Magento best development practices and is compatible with all other extensions. This extension is free of charge.&lt;br /&gt;&lt;br /&gt; &lt;h3&gt;Signup for FREE&lt;/h3&gt; &lt;a href="http://payitsimple.com/register/"&gt;Signup with Splitit for FREE and start offering your customers interest-free installment payments on their existing credit cards.&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;</description>
11
+ <notes>Support multi-currency for depending on cart total.</notes>
12
<authors><author><name>Eric Benayoun</name><user>ericbena</user><email>ericb@splitit.com</email></author></authors>
13
+ <date>2017-04-25</date>
14
+ <time>14:19:33</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="PayItSimple_Payment.xml" hash="608e164d747a215efa2cf4d062693236"/></dir></target><target name="magecommunity"><dir name="PayItSimple"><dir name="Payment"><dir name="Block"><dir name="Adminhtml"><file name="Addresses.php" hash="c9e039ce7123b2c917db49395a38e621"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="4f726bf958620400bac66c0757717411"/></dir><file name="Notification.php" hash="27ac86d84fe3927c28abc6da018736cd"/></dir></dir></dir><dir name="Form"><file name="Pis.php" hash="b29945f92f5131ec71468636ce61dafe"/></dir><dir name="Info"><file name="Pis.php" hash="42cb4edb5ff208a1a3ee7612579a6165"/></dir></dir><dir name="Helper"><file name="Data.php" hash="1fba2ce41eb4f554e365d82424323ccd"/></dir><dir name="Model"><file name="Api.php" hash="c90275f29eca956e40264fa6f38cad4c"/><file name="Observer.php" hash="e12b8d880b038f3965325476862eeddf"/><file name="PisMethod.php" hash="70ae765383c60c81395b9dc373dfa6cc"/><dir name="Source"><file name="Action.php" hash="1390fb3dce78cf8eff1118df2ee5b997"/><file name="Cctype.php" hash="7f77a0c6729d0896c8ec250bb7f4fd49"/><file name="Firstpayment.php" hash="bd96f52609ba07f9b166e4bdcd1b8664"/><file name="Frontendpages.php" hash="526d1e6875b3092f1b946c5de81f7513"/><file name="Installments.php" hash="65b727e639308cba4241662a2040d6f3"/><file name="Selectinstallmentsetup.php" hash="4af3a6fc08ea94eb5b25837fb5fa40c7"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="PayitsimpleController.php" hash="7c757c70dd4b654997622d713dc73e66"/></dir><file name="PaymentController.php" hash="c63215c5b7f1a4e28e8632330ea9a675"/></dir><dir name="etc"><file name="config.xml" hash="a208044c3af976ed3f1b084c85af81af"/><file name="system.xml" hash="0de65d9ed58f9f618be980c5e0ff711a"/></dir><dir name="sql"><dir name="pis_payment_setup"><file name="mysql4-install-1.0.0.php" hash="f2687e3adaa4654942a882287a0bf532"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payitsimple"><dir name="system"><dir name="config"><file name="addresses.phtml" hash="ee6b3c18e827930a2820775d00c86ed3"/><file name="button.phtml" hash="cf9f1fd8b02d796a85156c0df605a4ba"/><file name="notification.phtml" hash="86940d0b8a6695c54daaf6b7918633dc"/></dir></dir></dir></dir><dir name="layout"><file name="payitsimple_notification.xml" hash="51da7978dbea5c9f9f5dc2c63caca786"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payitsimple"><dir name="form"><file name="method_faq.phtml" hash="96137f1fdfaa264a9b30ac18e20efe19"/><file name="pis.phtml" hash="9ac23b2fb5e357cb157de62706486e58"/></dir><file name="help.phtml" hash="1c2b0b2b65b4313b4382fb74a9d63844"/><file name="splitprice.phtml" hash="7fd61eefb83c2abde645fbd3e0067ac7"/><file name="terms.phtml" hash="f5a8ea332b4179622810fa759291e424"/></dir></dir><dir name="layout"><file name="pis_payment.xml" hash="396990452fc2ba83c2917f7abbfb9196"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="pis_checkout.css" hash="d230ef00c44f9d6d30c24cb774ce0fcb"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir><dir name="js"><dir name="payitsimple"><file name="checkout.js" hash="6474d718a35f8d2b28ad9cda49ea4465"/><file name="jquery-1.12.4.js" hash="491d557f4d119677c4031639c7ec473c"/><file name="jquery-2.2.4.min.js" hash="2f6b11a7e914718e0290410e85366fe9"/><dir name="payitsimplepament"><file name="Amex_logo.png" hash="baa1ee84ce383983f6c6acb4057d62c0"/><file name="LearnMore.png" hash="4af0f9684c7098491b8a65bc2b9dd741"/><file name="MC_logo.png" hash="810349f2cbe27ba2de32b8976d64c004"/><file name="Splitit_by.png" hash="7e7a0d387efd84ca060a0996c8e7da86"/><file name="Visa_logo.png" hash="e39e0ff1010d2c15960ec54d001fe3bd"/><file name="approval-popup-close.png" hash="a4d99d95265e08d016edad958ab4f126"/><file name="opc-ajax-loader.gif" hash="f48ee069890b16455c3ddcacee9b5f75"/><file name="splitit_new_logo.png" hash="341acd95a1643e06701f9985bc2bd06c"/></dir></dir></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>
skin/frontend/base/default/css/pis_checkout.css CHANGED
@@ -42,18 +42,20 @@
42
.wiz-header-center{text-align:center; color:#fff; font-size:14px;}
43
.currencySymbolIcon{font-size: 26px}
44
.wiz-header-right{width:45px; padding:20px;}
45
- #payment-schedule{float:left; display:none; position: absolute; z-index: 99; top:60px;}
46
#termAndConditionpopup{display: none; height: calc(100% - 20px); overflow: hidden; overflow-y: scroll; position: absolute; top: 10px; left: 0; z-index: 9;}
47
._popup_overlay{position: absolute; top: 0;left: 0;width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; display: none;}
48
#termAndConditionpopup a{text-decoration: underline;color:#fff;}
49
- .popup-content{background-color: #279dd8; border-color: #279dd8; border-radius: 5px 5px 0 0; border-style: solid; border-width: 10px 10px 0; color: white; font-size: 14px; margin: 10px 10px 0; max-height: calc(100% - 66px); overflow-y: auto; text-align: initial;}
50
.popupContentTable{table-layout: fixed; width: 100%; color: white; line-height: 25px; text-align: center;}
51
.popupContentTable tr{border-bottom:1px dotted #fff; height:35px; }
52
.popupContentTable tr td {text-align: center;}
53
.popup-footer{background-color: #279dd8; border-radius: 0 0 5px 5px; margin: 0 10px;}
54
.popup-btn{background-color: #279dd8; border-radius: 0 0 5px 5px; margin: 0 10px;}
55
.popup-btn-area{color: white;font-size: 16px; line-height: 27px; text-align: center; white-space: nowrap;}
56
.popup-btn-icon{border: 1px solid; border-radius: 5px; display: inline-block; margin: 10px 0; padding: 1px 27px 3px; cursor: pointer;}
57
.form-block{float: left; vertical-align:top; width:50%;}
58
.form-block-area{margin:0 20px;}
59
.spacer15{height:15px; display:block;}
@@ -82,7 +84,7 @@ table.tablePage2 td{ width:50%; vertical-align: middle; }
82
.form-block{width:100%;}
83
.popupContentTable{min-width: 580px;}
84
.popup-content{overflow-y: auto; text-align: initial;}
85
- #payment-schedule{position: relative; width: 100%; overflow: hidden; overflow-x: auto;}
86
}
87
@media only screen and (max-width: 767px) {}
88
42
.wiz-header-center{text-align:center; color:#fff; font-size:14px;}
43
.currencySymbolIcon{font-size: 26px}
44
.wiz-header-right{width:45px; padding:20px;}
45
+ #payment-schedule{float:left; display:none; position: absolute; z-index: 99; top:60px; height: calc(100% - 60px);overflow: hidden; overflow-y: auto;}
46
#termAndConditionpopup{display: none; height: calc(100% - 20px); overflow: hidden; overflow-y: scroll; position: absolute; top: 10px; left: 0; z-index: 9;}
47
._popup_overlay{position: absolute; top: 0;left: 0;width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; display: none;}
48
#termAndConditionpopup a{text-decoration: underline;color:#fff;}
49
+ .popup-content{background-color: #279dd8; border-color: #279dd8; border-radius: 5px 5px 0 0; border-style: solid; border-width: 10px 10px 0; color: white; font-size: 14px; margin: 10px 10px 0; max-height: calc(100% - 66px); overflow-y: auto; text-align: initial; padding-bottom: 20px;}
50
.popupContentTable{table-layout: fixed; width: 100%; color: white; line-height: 25px; text-align: center;}
51
.popupContentTable tr{border-bottom:1px dotted #fff; height:35px; }
52
.popupContentTable tr td {text-align: center;}
53
.popup-footer{background-color: #279dd8; border-radius: 0 0 5px 5px; margin: 0 10px;}
54
.popup-btn{background-color: #279dd8; border-radius: 0 0 5px 5px; margin: 0 10px;}
55
.popup-btn-area{color: white;font-size: 16px; line-height: 27px; text-align: center; white-space: nowrap;}
56
+ .popup-btn-area-terms{color: white;font-size: 16px; line-height: 27px; text-align: right; white-space: nowrap;padding-bottom: 10px;}
57
.popup-btn-icon{border: 1px solid; border-radius: 5px; display: inline-block; margin: 10px 0; padding: 1px 27px 3px; cursor: pointer;}
58
+ .popup-btn-icon-terms{display: inline-block; cursor: pointer; }
59
.form-block{float: left; vertical-align:top; width:50%;}
60
.form-block-area{margin:0 20px;}
61
.spacer15{height:15px; display:block;}
84
.form-block{width:100%;}
85
.popupContentTable{min-width: 580px;}
86
.popup-content{overflow-y: auto; text-align: initial;}
87
+ #payment-schedule{position: relative; width: 100%;}
88
}
89
@media only screen and (max-width: 767px) {}
90