public function processBankTransfer(Transaction $transaction)
    {
        $transaction->setStatus(Transaction::STATUS_PENDING_TRANSFER);
        $pm = $this->manager->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
        $transaction->setPaymentMethod($pm);

        $this->manager->persist($transaction);
        $this->manager->flush();
        
        return true;
    }
public function processBankTransfer(Transaction $transaction)
    {
        $transaction->setStatus(Transaction::STATUS_PENDING_TRANSFER);
        $pm = $this->manager->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
        $transaction->setPaymentMethod($pm);

        $this->manager->persist($transaction);
        $this->manager->flush();
        
        return true;
    }
public function processBankTransfer ( Transaction $ transaction ) { $ transaction -> setStatus ( Transaction :: STATUS_PENDING_TRANSFER ) ; $ pm = $ this -> manager -> getRepository ( 'EcommerceBundle:PaymentMethod' ) -> findOneBySlug ( 'bank-transfer-test' ) ; $ transaction -> setPaymentMethod ( $ pm ) ; $ this -> manager -> persist ( $ transaction ) ; $ this -> manager -> flush ( ) ; return true ; }
Process a bank transfer request

@param Transaction $transaction
Process a bank transfer request