Skip to content

Commit

Permalink
BP-2374 - Remove Limit By IP from general settings account
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianTuriacArnia committed Oct 24, 2023
1 parent b779553 commit 8501210
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 364 deletions.
86 changes: 0 additions & 86 deletions Gateway/Validator/AvailableBasedOnIPValidator.php

This file was deleted.

103 changes: 0 additions & 103 deletions Model/Checks/CanUseForIP.php

This file was deleted.

16 changes: 0 additions & 16 deletions Model/ConfigProvider/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public function getConfig($store = null): array
'debug_types' => $this->getLogLevel($store),
'log_handler' => $this->getLogHandler($store),
'log_retention' => $this->getLogRetention($store),
'limit_by_ip' => $this->getLimitByIp($store),
'fee_percentage_mode' => $this->getFeePercentageMode($store),
'payment_fee_label' => $this->getPaymentFeeLabel($store),
'order_status_new' => $this->getOrderStatusNew($store),
Expand Down Expand Up @@ -493,21 +492,6 @@ public function getLogRetention($store = null)
);
}

/**
* Display only for selected IPs
*
* @param null|int|string $store
* @return mixed
*/
public function getLimitByIp($store = null)
{
return $this->scopeConfig->getValue(
self::XPATH_ACCOUNT_LIMIT_BY_IP,
ScopeInterface::SCOPE_STORE,
$store
);
}

/**
* Get Fee percentage mode (Subtotal/Subtotal incl. tax)
*
Expand Down
144 changes: 0 additions & 144 deletions Test/Unit/Gateway/Validator/AvailableBasedOnIPValidatorTest.php

This file was deleted.

6 changes: 0 additions & 6 deletions etc/adminhtml/system/account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,6 @@

<group id="buckaroo_magento2_miscellaneous_section" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Miscellaneous</label>
<field id="limit_by_ip" translate="label comment" type="select" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Display only for selected IPs</label>
<comment><![CDATA[Show method only to Magento set IPs.]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>buckaroo_magento2/account/limit_by_ip</config_path>
</field>

<field id="create_order_before_transaction" translate="label comment" type="select" sortOrder="170" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Create order before transaction</label>
Expand Down
Loading

0 comments on commit 8501210

Please sign in to comment.