Version Notes
- Fix problem with iframe with iphones
- send vat info for guest users
Download this release
Release Info
Developer | Albert Fatsini |
Extension | Pagantis_Pagantis |
Version | 3.3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3.2 to 3.3.4
- app/code/community/Pagantis/Pagantis/Model/Webservice/Requestloan.php +6 -6
- app/code/community/Pagantis/Pagantis/controllers/PagantisController.php +1 -1
- app/design/frontend/base/default/template/pagantis/pagantis.phtml +0 -14
- app/design/frontend/base/default/template/pagantis/redirect.phtml +51 -5
- package.xml +6 -5
- skin/frontend/base/default/iframe.css +134 -37
app/code/community/Pagantis/Pagantis/Model/Webservice/Requestloan.php
CHANGED
@@ -182,7 +182,7 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
|
|
182 |
$array['billing[full_name]'] = $this->_userData['billing[full_name]'];
|
183 |
|
184 |
|
185 |
-
$array['metadata[module_version]'] = '3.3.
|
186 |
$array['metadata[platform]'] = 'magento '. Mage::getVersion();
|
187 |
|
188 |
return $array;
|
@@ -338,11 +338,6 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
|
|
338 |
$this->_userData['billing[last_updated]'] = $address_c->updated_at;
|
339 |
}
|
340 |
|
341 |
-
if ($order->getCustomerFirstname() == $address->getFirstname()
|
342 |
-
&& $order->getCustomerLastname() == $address->getLastname()) {
|
343 |
-
$this->_userData['dni'] = $address->getVatId();
|
344 |
-
$this->_userData['dob'] = substr($order->getCustomerDob(), 0, 10);
|
345 |
-
}
|
346 |
} else {
|
347 |
throw new \Exception('Missing user data info');
|
348 |
}
|
@@ -384,6 +379,11 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
|
|
384 |
$this->_userData['dob'] = substr($customer->getDob(), 0, 10);
|
385 |
}
|
386 |
}
|
|
|
|
|
|
|
|
|
|
|
387 |
}
|
388 |
|
389 |
/**
|
182 |
$array['billing[full_name]'] = $this->_userData['billing[full_name]'];
|
183 |
|
184 |
|
185 |
+
$array['metadata[module_version]'] = '3.3.4';
|
186 |
$array['metadata[platform]'] = 'magento '. Mage::getVersion();
|
187 |
|
188 |
return $array;
|
338 |
$this->_userData['billing[last_updated]'] = $address_c->updated_at;
|
339 |
}
|
340 |
|
|
|
|
|
|
|
|
|
|
|
341 |
} else {
|
342 |
throw new \Exception('Missing user data info');
|
343 |
}
|
379 |
$this->_userData['dob'] = substr($customer->getDob(), 0, 10);
|
380 |
}
|
381 |
}
|
382 |
+
|
383 |
+
if ($this->_userData['billing[full_name]'] == $this->_userData['full_name']) {
|
384 |
+
$this->_userData['dni'] = $address->getVatId();
|
385 |
+
$this->_userData['dob'] = substr($order->getCustomerDob(), 0, 10);
|
386 |
+
}
|
387 |
}
|
388 |
|
389 |
/**
|
app/code/community/Pagantis/Pagantis/controllers/PagantisController.php
CHANGED
@@ -32,7 +32,6 @@ class Pagantis_Pagantis_PagantisController extends Mage_Core_Controller_Front_Ac
|
|
32 |
$order->setState($state, $state, Mage::helper('pagantis_pagantis')->__('Redirected to Pagantis'), false);
|
33 |
$order->setPagantisTransaction('pmt_pending_order');
|
34 |
$order->save();
|
35 |
-
$this->_restore_cart($order);
|
36 |
$this->loadLayout();
|
37 |
$this->renderLayout();
|
38 |
} else {
|
@@ -231,6 +230,7 @@ class Pagantis_Pagantis_PagantisController extends Mage_Core_Controller_Front_Ac
|
|
231 |
}
|
232 |
|
233 |
private function _restore_cart($order) {
|
|
|
234 |
$cart = Mage::getSingleton('checkout/cart');
|
235 |
$items = $order->getItemsCollection();
|
236 |
if ($cart->getItemsCount()<=0){
|
32 |
$order->setState($state, $state, Mage::helper('pagantis_pagantis')->__('Redirected to Pagantis'), false);
|
33 |
$order->setPagantisTransaction('pmt_pending_order');
|
34 |
$order->save();
|
|
|
35 |
$this->loadLayout();
|
36 |
$this->renderLayout();
|
37 |
} else {
|
230 |
}
|
231 |
|
232 |
private function _restore_cart($order) {
|
233 |
+
$session = Mage::getSingleton('checkout/session');
|
234 |
$cart = Mage::getSingleton('checkout/cart');
|
235 |
$items = $order->getItemsCollection();
|
236 |
if ($cart->getItemsCount()<=0){
|
app/design/frontend/base/default/template/pagantis/pagantis.phtml
CHANGED
@@ -1,27 +1,13 @@
|
|
1 |
<fieldset class="form-list">
|
2 |
<?php $_code = $this->getMethodCode() ?>
|
3 |
-
<?php $activeMethodEndOfMonth = Mage::getStoreConfig('payment/pagantis/end_of_month'); ?>
|
4 |
<?php $discount = Mage::getStoreConfig('payment/pagantis/discount'); ?>
|
5 |
-
<?php $activeMethodEndOfMonth = false; ?>
|
6 |
</fieldset>
|
7 |
<div id="payment_form_<?php echo $_code ?>" style="display: none">
|
8 |
<div id="innerpagantis">
|
9 |
-
<?php if($activeMethodEndOfMonth) : ?>
|
10 |
-
<input type="radio" class="pagantisradio" name="paymentdetail[]" value="financiacion" checked>Fináncialo con Paga+Tarde
|
11 |
-
|
12 |
-
<div class="PmtSimulator PmtSimulatorSelectable--claim" style="left:-10px; top: 5px;"
|
13 |
-
data-pmt-num-quota="4" data-pmt-style="neutral" data-pmt-type="3" data-pmt-discount="<?=$discount?>"
|
14 |
-
data-pmt-amount="<?=$this->total?>" data-pmt-expanded="no" data-pmt-max-ins="12"></div>
|
15 |
-
|
16 |
-
<input type="radio" class="pagantisradio" name="paymentdetail[]" value="end_of_month">Paga a fin de mes<br />
|
17 |
-
<?php else: ?>
|
18 |
<input type="hidden" class="pagantisradio" name="paymentdetail[]" value="financiacion">
|
19 |
<div class="PmtSimulator PmtSimulatorSelectable--claim" style="left:-10px; top: 5px;"
|
20 |
data-pmt-num-quota="4" data-pmt-style="neutral" data-pmt-type="3" data-pmt-discount="<?=$discount?>"
|
21 |
data-pmt-amount="<?=$this->total?>" data-pmt-expanded="no" data-pmt-max-ins="12"></div>
|
22 |
-
|
23 |
-
<?php endif; ?>
|
24 |
-
|
25 |
</div>
|
26 |
</div>
|
27 |
|
1 |
<fieldset class="form-list">
|
2 |
<?php $_code = $this->getMethodCode() ?>
|
|
|
3 |
<?php $discount = Mage::getStoreConfig('payment/pagantis/discount'); ?>
|
|
|
4 |
</fieldset>
|
5 |
<div id="payment_form_<?php echo $_code ?>" style="display: none">
|
6 |
<div id="innerpagantis">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
<input type="hidden" class="pagantisradio" name="paymentdetail[]" value="financiacion">
|
8 |
<div class="PmtSimulator PmtSimulatorSelectable--claim" style="left:-10px; top: 5px;"
|
9 |
data-pmt-num-quota="4" data-pmt-style="neutral" data-pmt-type="3" data-pmt-discount="<?=$discount?>"
|
10 |
data-pmt-amount="<?=$this->total?>" data-pmt-expanded="no" data-pmt-max-ins="12"></div>
|
|
|
|
|
|
|
11 |
</div>
|
12 |
</div>
|
13 |
|
app/design/frontend/base/default/template/pagantis/redirect.phtml
CHANGED
@@ -19,12 +19,10 @@
|
|
19 |
if ($this->iframe) {
|
20 |
?>
|
21 |
|
22 |
-
|
23 |
-
<div id="paylater_myModal" class="paylater_modal">
|
24 |
-
<!-- Modal content -->
|
25 |
<div class="paylater_modal-content">
|
26 |
-
<
|
27 |
-
<
|
28 |
</div>
|
29 |
</div>
|
30 |
|
@@ -56,6 +54,54 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|
56 |
});
|
57 |
</script>
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
<?php
|
60 |
} else {
|
61 |
?>
|
19 |
if ($this->iframe) {
|
20 |
?>
|
21 |
|
22 |
+
<div id="paylater_myModal" class="paylater_modal" style="display: none;">
|
|
|
|
|
23 |
<div class="paylater_modal-content">
|
24 |
+
<iframe id="iframe-pagantis" name="iframe-pagantis" style="width: 100%; height: 100%; display: block" frameborder="0"></iframe>
|
25 |
+
<button class="paylater_modal-close" id="paylater_close" title="Cerrar" type="button">X</button>
|
26 |
</div>
|
27 |
</div>
|
28 |
|
54 |
});
|
55 |
</script>
|
56 |
|
57 |
+
<script type="text/javascript">
|
58 |
+
(function() {
|
59 |
+
function addClass(el, className) {
|
60 |
+
if (el.classList){
|
61 |
+
el.classList.add(className);
|
62 |
+
} else{
|
63 |
+
el.className += ' ' + className;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
function removeClass(el, className) {
|
67 |
+
if (el.classList) {
|
68 |
+
el.classList.remove(className);
|
69 |
+
} else {
|
70 |
+
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
el = document.getElementById("submitButton");
|
75 |
+
el.addEventListener('click', function (e){
|
76 |
+
e.preventDefault();
|
77 |
+
document.getElementById('pagantis_pagantis_checkout').setAttribute('target', 'iframe-pagantis');
|
78 |
+
document.getElementById('pagantis_pagantis_checkout').submit();
|
79 |
+
document.getElementById('iframe-pagantis').style.display = 'block';
|
80 |
+
document.getElementById('paylater_myModal').style.display = 'block';
|
81 |
+
addClass(document.getElementsByTagName('body')[0], 'paylater_modal-open')
|
82 |
+
});
|
83 |
+
var closeModal = function closeModal(evt) {
|
84 |
+
evt.preventDefault();
|
85 |
+
document.getElementById('paylater_myModal').style.display = 'none';
|
86 |
+
removeClass(document.getElementsByTagName('body')[0], 'paylater_modal-open');
|
87 |
+
};
|
88 |
+
|
89 |
+
var elements = document.querySelectorAll('#paylater_close, #myModal');
|
90 |
+
Array.prototype.forEach.call(elements, function(el){
|
91 |
+
el.addEventListener('click', closeModal);
|
92 |
+
});
|
93 |
+
|
94 |
+
document.addEventListener("DOMContentLoaded", function(event) {
|
95 |
+
document.getElementById('pagantis_pagantis_checkout').setAttribute('target', 'iframe-pagantis');
|
96 |
+
document.getElementById('pagantis_pagantis_checkout').submit();
|
97 |
+
document.getElementById('iframe-pagantis').style.display = 'block';
|
98 |
+
document.getElementById('paylater_myModal').style.display = 'block';
|
99 |
+
addClass(document.getElementsByTagName('body')[0], 'paylater_modal-open')
|
100 |
+
});
|
101 |
+
|
102 |
+
})()
|
103 |
+
</script>
|
104 |
+
|
105 |
<?php
|
106 |
} else {
|
107 |
?>
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Pagantis_Pagantis</name>
|
4 |
-
<version>3.3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Modulo de Magento para habilitar la pasarela de pago Pagantis en Magento.</summary>
|
10 |
<description>Con este módulo se podrá activar la pasarela de pago Pagantis en Magento y aceptar pago con tarjetas de debito.</description>
|
11 |
-
<notes
|
|
|
12 |
<authors><author><name>Albert Fatsini</name><user>PagaMasTarde</user><email>afatsini@digitalorigin.com</email></author></authors>
|
13 |
-
<date>2017-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="89aded0a5a4754181ee2dd24f480cff9"/><file name="Redirect.php" hash="2c2dd64525f6f59dcd6b6d456ffc5ecf"/></dir><dir name="Helper"><file name="Data.php" hash="f411fc3dff8a30dde12612adcfc40921"/></dir><dir name="Model"><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="fa0e7d5688701cae875a8d14f58a816e"/><file name="Payment.php" hash="56017eb1aa5bd545811df915f0eeae8f"/><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="172d7470e03c8e7be8a41fcad1ccc20f"/><file name="Requestloan.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Pagantis_Pagantis</name>
|
4 |
+
<version>3.3.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Modulo de Magento para habilitar la pasarela de pago Pagantis en Magento.</summary>
|
10 |
<description>Con este módulo se podrá activar la pasarela de pago Pagantis en Magento y aceptar pago con tarjetas de debito.</description>
|
11 |
+
<notes>- Fix problem with iframe with iphones
|
12 |
+
- send vat info for guest users</notes>
|
13 |
<authors><author><name>Albert Fatsini</name><user>PagaMasTarde</user><email>afatsini@digitalorigin.com</email></author></authors>
|
14 |
+
<date>2017-05-11</date>
|
15 |
+
<time>15:36:38</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="89aded0a5a4754181ee2dd24f480cff9"/><file name="Redirect.php" hash="2c2dd64525f6f59dcd6b6d456ffc5ecf"/></dir><dir name="Helper"><file name="Data.php" hash="f411fc3dff8a30dde12612adcfc40921"/></dir><dir name="Model"><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="fa0e7d5688701cae875a8d14f58a816e"/><file name="Payment.php" hash="56017eb1aa5bd545811df915f0eeae8f"/><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="172d7470e03c8e7be8a41fcad1ccc20f"/><file name="Requestloan.php" hash="962bafad34a3e5ba987ff084cf114ecb"/><file name="Response.php" hash="bb1ade5931c5580f4585fc0fdb2bc4b0"/></dir></dir><dir name="controllers"><file name="PagantisController.php" hash="5568f7ceaa877ee99e2e0ae42a9f8f3c"/></dir><dir name="etc"><file name="config.xml" hash="ac4c7505180457b75b59d40691329db7"/><file name="system.xml" hash="a8a6b2cc704f825ad0688d49b783562c"/></dir><dir name="sql"><dir name="pagantis_setup"><file name="mysql4-install-1.0.0.php" hash="4ec10724709f8d381758409f55cff99d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="4328e44e218a0996f4e2412c545a8e9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="29736a84ea78eaeb75fe2be77d0a63cb"/></dir><dir name="template"><dir name="pagantis"><file name="form.phtml" hash="11cf70a55d8ec9e8ae3c1d94a832eeab"/><file name="pagantis.phtml" hash="b59ab14569cf184617d8dbcd1129a3e7"/><file name="redirect.phtml" hash="ea4b1d224e8e953768e0592ca3692685"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pagantis_Pagantis.xml" hash="c57db60bd03314d7a45f27acc9a9475a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><file name="pagantis.css" hash="7d1b6daea9f42c2552ebb5bd5c15596d"/></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis-fav.png" hash="c4e162b51c0792ff25385506d7998818"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir><file name="iframe.css" hash="44c6a261cd7c6091e389954a67f36478"/></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
|
19 |
</package>
|
skin/frontend/base/default/iframe.css
CHANGED
@@ -1,63 +1,160 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
.paylater_modal {
|
3 |
display: none; /* Hidden by default */
|
|
|
4 |
position: fixed; /* Stay in place */
|
5 |
-
z-index:
|
6 |
left: 0;
|
7 |
top: 0;
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
background-color: rgb(0,0,0); /* Fallback color */
|
12 |
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
16 |
.paylater_modal-content {
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
-
|
24 |
-
-moz-border-radius: 6px;
|
25 |
-
border-radius: 6px;
|
26 |
-
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
27 |
-
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
28 |
-
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
29 |
-
-webkit-background-clip: padding-box;
|
30 |
-
-moz-background-clip: padding-box;
|
31 |
background-clip: padding-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
color: #aaa;
|
37 |
float: right;
|
38 |
-
font-size:
|
39 |
font-weight: bold;
|
|
|
|
|
40 |
}
|
41 |
|
42 |
-
|
43 |
-
|
44 |
color: black;
|
45 |
text-decoration: none;
|
46 |
cursor: pointer;
|
47 |
}
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
}
|
60 |
|
61 |
-
|
62 |
-
|
63 |
}
|
1 |
+
iframe {
|
2 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
border: 0;
|
5 |
+
font-size: 100%;
|
6 |
+
vertical-align: baseline;
|
7 |
+
background: #FFFFFF;
|
8 |
+
font-weight: inherit;
|
9 |
+
-webkit-box-sizing: border-box;
|
10 |
+
-moz-box-sizing: border-box;
|
11 |
+
box-sizing: border-box;
|
12 |
+
}
|
13 |
+
|
14 |
+
iframe:focus {
|
15 |
+
outline: 0;
|
16 |
+
}
|
17 |
+
|
18 |
+
/* Modal
|
19 |
+
-------------------------------------------------- */
|
20 |
+
|
21 |
+
/* .paylater_modal-open - body class for killing the scroll
|
22 |
+
* .paylater_modal - container to scroll within
|
23 |
+
* .paylater_modal-content - actual modal w/ bg and corners and shit */
|
24 |
+
|
25 |
+
/* Kill the scroll on the body */
|
26 |
+
.paylater_modal-open {
|
27 |
+
overflow: hidden;
|
28 |
+
}
|
29 |
+
|
30 |
+
/* Container that the modal scrolls within */
|
31 |
.paylater_modal {
|
32 |
display: none; /* Hidden by default */
|
33 |
+
overflow: hidden;
|
34 |
position: fixed; /* Stay in place */
|
35 |
+
z-index: 9000; /* Sit on top */
|
36 |
left: 0;
|
37 |
top: 0;
|
38 |
+
bottom: 0;
|
39 |
+
right: 0;
|
40 |
+
background-color: #F2F2F2; /* Fallback color */
|
|
|
41 |
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
42 |
+
-webkit-overflow-scrolling: touch;
|
43 |
+
}
|
44 |
+
|
45 |
+
.paylater_modal:focus {
|
46 |
+
/* Prevent Chrome on Windows from adding a focus outline. For details, see
|
47 |
+
* https://github.com/twbs/bootstrap/pull/10951. */
|
48 |
+
outline: 0;
|
49 |
}
|
50 |
|
51 |
+
.paylater_modal-open .paylater_modal {
|
52 |
+
overflow-x: hidden;
|
53 |
+
overflow-y: auto;
|
54 |
+
}
|
55 |
+
|
56 |
+
/* Modal content */
|
57 |
.paylater_modal-content {
|
58 |
+
position: absolute;
|
59 |
+
top: 0;
|
60 |
+
left: 0;
|
61 |
+
bottom: 0;
|
62 |
+
right: 0;
|
63 |
+
height: 100%;
|
64 |
+
background-color: #FFFFFF;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
background-clip: padding-box;
|
66 |
+
overflow-y: auto;
|
67 |
+
}
|
68 |
+
|
69 |
+
.paylater_modal-content:focus {
|
70 |
+
/* Remove focus outline from opened modal */
|
71 |
+
outline: 0;
|
72 |
+
}
|
73 |
+
|
74 |
+
@media (min-width: 480px) {
|
75 |
+
.paylater_modal-content {
|
76 |
+
margin: auto;
|
77 |
+
|
78 |
+
/* merchant styles required */
|
79 |
+
width: 90% !important;
|
80 |
+
height: 75% !important;
|
81 |
+
|
82 |
+
/* custom styles */
|
83 |
+
background-color: #fefefe;
|
84 |
+
-webkit-border-radius: 6px;
|
85 |
+
-moz-border-radius: 6px;
|
86 |
+
border-radius: 6px;
|
87 |
+
|
88 |
+
-webkit-background-clip: padding-box;
|
89 |
+
-moz-background-clip: padding-box;
|
90 |
+
background-clip: padding-box;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
@media (min-width: 768px) {
|
95 |
+
.paylater_modal-content {
|
96 |
+
/* merchant styles required */
|
97 |
+
width: 600px !important;
|
98 |
+
height: 95% !important;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
.paylater_modal-content iframe {
|
103 |
+
position: absolute;
|
104 |
+
top: 0;
|
105 |
+
left: 0;
|
106 |
+
width: 100%;
|
107 |
+
height: 100%;
|
108 |
+
border: none;
|
109 |
+
padding-top: 20px;
|
110 |
+
background-color: #FFFFFF;
|
111 |
}
|
112 |
|
113 |
+
@media (min-width: 480px) {
|
114 |
+
.paylater_modal-content iframe {
|
115 |
+
padding: 20px;
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
.paylater_modal-close {
|
120 |
+
background: none;
|
121 |
+
border: 0;
|
122 |
+
line-height: normal;
|
123 |
+
overflow: visible;
|
124 |
+
padding: 0;
|
125 |
+
user-select: none;
|
126 |
+
position: relative;
|
127 |
+
display: block;
|
128 |
color: #aaa;
|
129 |
float: right;
|
130 |
+
font-size: 16px;
|
131 |
font-weight: bold;
|
132 |
+
top: 10px;
|
133 |
+
right: 10px;
|
134 |
}
|
135 |
|
136 |
+
.paylater_modal-close:hover,
|
137 |
+
.paylater_modal-close:focus {
|
138 |
color: black;
|
139 |
text-decoration: none;
|
140 |
cursor: pointer;
|
141 |
}
|
142 |
+
|
143 |
+
.paylater_payment_link {
|
144 |
+
color: #00C1D5;
|
145 |
+
font-family: Arial, sans-serif;
|
146 |
+
font-size: 16px;
|
147 |
+
line-height: 1.25;
|
148 |
+
font-weight: bold;
|
149 |
+
text-decoration: underline;
|
150 |
}
|
151 |
|
152 |
+
.paylater_payment_link:visited,
|
153 |
+
.paylater_payment_link:hover,
|
154 |
+
.paylater_payment_link:focus {
|
155 |
+
color: #008eaa;
|
156 |
}
|
157 |
|
158 |
+
.paylater_payment_link span {
|
159 |
+
font-weight: normal;
|
160 |
}
|