protected function isDonateAlreadyAdded(Request $request)
    {
        /** @var \PServerCore\Entity\Repository\DonateLog $donateEntity */
        $donateEntity = $this->entityManager->getRepository($this->collectionOptions->getEntityOptions()->getDonateLog());

        return $donateEntity->isDonateAlreadyAdded($request->getTransactionId(),
            $this->mapPaymentProvider2DonateType($request));
    }
protected function isDonateAlreadyAdded(Request $request)
    {
        /** @var \PServerCore\Entity\Repository\DonateLog $donateEntity */
        $donateEntity = $this->entityManager->getRepository($this->collectionOptions->getEntityOptions()->getDonateLog());

        return $donateEntity->isDonateAlreadyAdded($request->getTransactionId(),
            $this->mapPaymentProvider2DonateType($request));
    }
protected function isDonateAlreadyAdded ( Request $ request ) { /** @var \PServerCore\Entity\Repository\DonateLog $donateEntity */ $ donateEntity = $ this -> entityManager -> getRepository ( $ this -> collectionOptions -> getEntityOptions ( ) -> getDonateLog ( ) ) ; return $ donateEntity -> isDonateAlreadyAdded ( $ request -> getTransactionId ( ) , $ this -> mapPaymentProvider2DonateType ( $ request ) ) ; }
check is donate already added, if the provider ask, more than 1 time, this only works with a transactionId

@param Request $request
@return bool
check is donate already added if the provider ask more than 1 time this only works with a transactionId