original_string: public function process(Request $request, Transaction $transaction, Delivery $delivery)
      {
          //UPDATE TRANSACTION
          $em = $this->container->get('doctrine')->getManager();
          $pm = $em->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
          $transaction->setStatus(Transaction::STATUS_PAID);
          $transaction->setPaymentMethod($pm);
          $em->persist($transaction);
          $em->flush();
          //confirmation payment
          $answer = new stdClass();
          $answer->redirectUrl = $this->container->get('router')->generate('ecommerce_checkout_confirmationpayment');
  
          return $answer;
      }
code: public function process(Request $request, Transaction $transaction, Delivery $delivery)
      {
          //UPDATE TRANSACTION
          $em = $this->container->get('doctrine')->getManager();
          $pm = $em->getRepository('EcommerceBundle:PaymentMethod')->findOneBySlug('bank-transfer-test');
          $transaction->setStatus(Transaction::STATUS_PAID);
          $transaction->setPaymentMethod($pm);
          $em->persist($transaction);
          $em->flush();
          //confirmation payment
          $answer = new stdClass();
          $answer->redirectUrl = $this->container->get('router')->generate('ecommerce_checkout_confirmationpayment');
  
          return $answer;
      }
code_tokens: public function process ( Request $ request , Transaction $ transaction , Delivery $ delivery ) { //UPDATE TRANSACTION $ em = $ this -> container -> get ( 'doctrine' ) -> getManager ( ) ; $ pm = $ em -> getRepository ( 'EcommerceBundle:PaymentMethod' ) -> findOneBySlug ( 'bank-transfer-test' ) ; $ transaction -> setStatus ( Transaction :: STATUS_PAID ) ; $ transaction -> setPaymentMethod ( $ pm ) ; $ em -> persist ( $ transaction ) ; $ em -> flush ( ) ; //confirmation payment $ answer = new stdClass ( ) ; $ answer -> redirectUrl = $ this -> container -> get ( 'router' ) -> generate ( 'ecommerce_checkout_confirmationpayment' ) ; return $ answer ; }
docstring: Process payment OK
  
  @param Request $request
  
  @return stdClass
docstring_tokens: Process payment OK