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;
    }