Model/PaymentValidator.php
protected function checkPriceRange()
    {
        $isValid = true;

        $payPalPayment = $this->getPayment();

        if ($payPalPayment->oxpayments__oxfromamount->value != 0 ||
            $payPalPayment->oxpayments__oxtoamount->value != 0
        ) {
            $cur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            $price = $this->getPrice() / $cur->rate;

            $isValid = (($price >= $payPalPayment->oxpayments__oxfromamount->value) &&
                          ($price <= $payPalPayment->oxpayments__oxtoamount->value));
        }

        return $isValid;
    }
protected function checkPriceRange()
    {
        $isValid = true;

        $payPalPayment = $this->getPayment();

        if ($payPalPayment->oxpayments__oxfromamount->value != 0 ||
            $payPalPayment->oxpayments__oxtoamount->value != 0
        ) {
            $cur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            $price = $this->getPrice() / $cur->rate;

            $isValid = (($price >= $payPalPayment->oxpayments__oxfromamount->value) &&
                          ($price <= $payPalPayment->oxpayments__oxtoamount->value));
        }

        return $isValid;
    }
protected function checkPriceRange ( ) { $ isValid = true ; $ payPalPayment = $ this -> getPayment ( ) ; if ( $ payPalPayment -> oxpayments__oxfromamount -> value != 0 || $ payPalPayment -> oxpayments__oxtoamount -> value != 0 ) { $ cur = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; $ price = $ this -> getPrice ( ) / $ cur -> rate ; $ isValid = ( ( $ price >= $ payPalPayment -> oxpayments__oxfromamount -> value ) && ( $ price <= $ payPalPayment -> oxpayments__oxtoamount -> value ) ) ; } return $ isValid ; }
Checks if basket price is inside payment price range
If range is not set check returns true

@return bool
Checks if basket price is inside payment price range If range is not set check returns true