public function aroundAuthorize(
        \Magento\Sales\Model\Order\Payment\Processor $subject,
        \Closure $proceed,
        \Magento\Sales\Api\Data\OrderPaymentInterface $payment,
        $isOnline,
        $amount
    ) {
        $amountToPay = $amount;
        $order = $payment->getOrder();
        $quoteId = $order->getQuoteId();
        $found = $this->daoPartialQuote->getById($quoteId);
        if ($found) {
            $basePartial = $found->getBasePartialAmount();
            $amountToPay -= $basePartial;
        }
        $result = $proceed($payment, $isOnline, $amountToPay);
        return $result;
    }