Skip to content

Commit

Permalink
fixes post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-cortizas-ponte committed Apr 28, 2022
1 parent 4d48e43 commit 3e4a627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions plugin/buycourses/src/buy_course_plugin.class.php
Expand Up @@ -1559,6 +1559,10 @@ public function getPaymentTypes(bool $onlyActive = false): array
unset($types[BuyCoursesPlugin::PAYMENT_TYPE_STRIPE]);
}

if ($this->get('cecabank_enable') !== 'true') {
unset($types[BuyCoursesPlugin::PAYMENT_TYPE_TPV_CECABANK]);
}

return $types;
}

Expand Down
4 changes: 0 additions & 4 deletions plugin/buycourses/src/process.php
Expand Up @@ -95,10 +95,6 @@

$paymentTypesOptions = $plugin->getPaymentTypes(true);

if (!$tpvCecabankEnable || strtolower($currency['iso_code']) != 'eur') {
unset($paymentTypesOptions[BuyCoursesPlugin::PAYMENT_TYPE_TPV_CECABANK]);
}

$count = count($paymentTypesOptions);
if ($count === 0) {
$form->addHtml($plugin->get_lang('NoPaymentOptionAvailable'));
Expand Down

0 comments on commit 3e4a627

Please sign in to comment.