Skip to content

Commit

Permalink
Code polish
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Jul 17, 2021
1 parent 1509a99 commit 7c99276
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions paynl_paymentmethods/controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ public function initContent()
$apiStart->setExtra1('CartId: ' . $cart->id);
$apiStart->setObject('prestashop16 ' . $module->getVersion());
$apiStart->setOrderNumber($cart->id);
if($bank_id){
if ($bank_id) {
$apiStart->setPaymentOptionSubId($bank_id);
}

$apiStart->setPaymentOptionId($paymentOptionId);

$finishUrl = Context::getContext()->link->getModuleLink('paynl_paymentmethods', 'return');
Expand Down
28 changes: 14 additions & 14 deletions paynl_paymentmethods/paynl.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
p.payment_module a.paynl_paymentmethod:after,
#showbanks_submenu a:after {
#showbanks_submenu a:after {
color: #777777;
content: "";
display: block;
Expand All @@ -14,23 +14,23 @@ p.payment_module a.paynl_paymentmethod:after,
}

p.payment_module a.paynl_paymentmethod *,
p.payment_module a.paynl_paymentmethod{
p.payment_module a.paynl_paymentmethod {
padding: 3px;
padding-left: 10px;
padding-left: 10px;
vertical-align: middle;
cursor: pointer;
}

p.payment_module a.paynl_paymentmethod label{
margin-right:10px;
p.payment_module a.paynl_paymentmethod label {
margin-right: 10px;
}

a.paynl_paymentmethod{
a.paynl_paymentmethod {
height: 85px;
}

#showbanks_submenu a:after {
font-size:15px;
#showbanks_submenu a:after {
font-size: 15px;
}

#showbanks_submenu {
Expand All @@ -46,27 +46,27 @@ a.paynl_paymentmethod{
padding: 5px;
letter-spacing: -1px;
position: relative;
background: #0000000d;
background: #0000000d;
}

#showbanks_submenu_container{
#showbanks_submenu_container {
max-height: 0;
-webkit-transition: max-height 1s;
-o-transition: max-height .5s;
transition: max-height 1s;
overflow: hidden;
display: block;
display: block;
}

#showbanks_submenu_container.active{
#showbanks_submenu_container.active {
max-height: 1000px;
}

p.payment_module a.paynl_paymentmethod.bank {
height: auto;
padding: 7px;
padding: 7px;
}

p.payment_module a.paynl_paymentmethod.bank img {
padding-right: 10px;
}
}
8 changes: 4 additions & 4 deletions paynl_paymentmethods/paynl_paymentmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct()
{
$this->name = 'paynl_paymentmethods';
$this->tab = 'payments_gateways';
$this->version = '3.5.8';
$this->version = '3.6.0';
$this->_postErrors = array();
$this->module_key = '6c2f48f238008e8f68271f5e4763d308';

Expand Down Expand Up @@ -281,7 +281,7 @@ public function hookPayment($params)
// Order remaining profiles based by order...
asort($methodOrder);

$activeProfilesTemp = $activeProfiles;
$activeProfilesTemp = $activeProfiles;
$ideal_banks = array();
$activeProfiles = array();

Expand Down Expand Up @@ -598,9 +598,9 @@ public function displayFormSettings()

$osBanks = '<select name="showbanks">';

$BankStates = array(0 => $this->l('Disabled'), 1 => $this->l('Enabled'));
$bankStates = array(0 => $this->l('Disabled'), 1 => $this->l('Enabled'));

foreach ($BankStates as $stateVal => $stateText) {
foreach ($bankStates as $stateVal => $stateText) {
$selected = $conf['PAYNL_SHOWBANKS'] == $stateVal ? ' selected' : '';
$osBanks .= '<option value="' . $stateVal . '"' . $selected . '>' . $stateText . '</option>';
}
Expand Down

0 comments on commit 7c99276

Please sign in to comment.