public function isConfirmedByPayPal($basket)
    {
        $oldBasketAmount = $this->getSession()->getVariable("oepaypal-basketAmount");
        if (!$oldBasketAmount) {
            return false;
        }

        $payPalCheckValidator = oxNew(\OxidEsales\PayPalModule\Core\PayPalCheckValidator::class);
        $payPalCheckValidator->setNewBasketAmount($basket->getPrice()->getBruttoPrice());
        $payPalCheckValidator->setOldBasketAmount($oldBasketAmount);

        return $payPalCheckValidator->isPayPalCheckValid();
    }