PHP Class Elcodi\Bridge\PaymentSuiteBridgeBundle\EventListener\OrderToPaidEventListener

Mostra file Open project: elcodi/bamboo

Public Methods

Method Description
__construct ( Elcodi\Component\StateTransitionMachine\Machine\MachineManager $paymentMachineManager, Doctrine\Common\Persistence\ObjectManager $orderObjectManager, Doctrine\Common\Persistence\ObjectManager $stateLineObjectManager ) Construct method
setOrderToPaid ( PaymentSuite\PaymentCoreBundle\Event\Abstracts\AbstractPaymentEvent $event ) Completes the payment process when the payment.order.success event is raised.

Method Details

__construct() public method

Construct method
public __construct ( Elcodi\Component\StateTransitionMachine\Machine\MachineManager $paymentMachineManager, Doctrine\Common\Persistence\ObjectManager $orderObjectManager, Doctrine\Common\Persistence\ObjectManager $stateLineObjectManager )
$paymentMachineManager Elcodi\Component\StateTransitionMachine\Machine\MachineManager Machine manager for payment
$orderObjectManager Doctrine\Common\Persistence\ObjectManager Order object manager
$stateLineObjectManager Doctrine\Common\Persistence\ObjectManager StateLine object manager

setOrderToPaid() public method

This means that we can change the order state to ACCEPTED
public setOrderToPaid ( PaymentSuite\PaymentCoreBundle\Event\Abstracts\AbstractPaymentEvent $event )
$event PaymentSuite\PaymentCoreBundle\Event\Abstracts\AbstractPaymentEvent