Sonata\Component\Payment\Ogone\OgonePayment::applyTransactionId PHP Method

applyTransactionId() public method

public applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface
    public function applyTransactionId(TransactionInterface $transaction)
    {
        $transaction->setTransactionId('n/a');
    }

Usage Example

 public function testApplyTransactionId()
 {
     $logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
     $templating = $this->getMock('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface');
     $router = $this->getMock('Symfony\\Component\\Routing\\RouterInterface');
     $payment = new OgonePayment($router, $logger, $templating, true);
     $transaction = $this->getMock('Sonata\\Component\\Payment\\TransactionInterface');
     $transaction->expects($this->once())->method('setTransactionId');
     $payment->applyTransactionId($transaction);
 }