Property | Type | Description | |
---|---|---|---|
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$notificationBackend | Sonata\NotificationBundle\Backend\BackendInterface | ||
$orderManager | Sonata\Component\Order\OrderManagerInterface | ||
$paymentSelector | Sonata\Component\Payment\PaymentSelectorInterface | ||
$referenceGenerator | Sonata\Component\Generator\ReferenceInterface | ||
$transactionManager | TransactionManagerInterface |
Method | Description | |
---|---|---|
__construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\Component\Payment\PaymentSelectorInterface $paymentSelector, Sonata\Component\Generator\ReferenceInterface $referenceGenerator, TransactionManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $notificationBackend, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | Constructor. | |
getPaymentCallbackResponse ( |
||
getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket ) | ||
handleConfirmation ( |
||
handleError ( |
Method | Description | |
---|---|---|
createTransaction ( |
||
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
getPayment ( $code ) : Sonata\Component\Payment\PaymentInterface | ||
getValidOrder ( Sonata\Component\Payment\TransactionInterface $transaction ) : Sonata\Component\Order\OrderInterface | Retrieves the order matching $transaction and adds it to $transaction. |
public __construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\Component\Payment\PaymentSelectorInterface $paymentSelector, Sonata\Component\Generator\ReferenceInterface $referenceGenerator, TransactionManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $notificationBackend, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
$orderManager | Sonata\Component\Order\OrderManagerInterface | |
$paymentSelector | Sonata\Component\Payment\PaymentSelectorInterface | |
$referenceGenerator | Sonata\Component\Generator\ReferenceInterface | |
$transactionManager | TransactionManagerInterface | |
$notificationBackend | Sonata\NotificationBundle\Backend\BackendInterface | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected createTransaction ( |
||
$request | ||
return | Sonata\Component\Payment\TransactionInterface |
protected getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected getPayment ( $code ) : Sonata\Component\Payment\PaymentInterface | ||
$code | ||
return | Sonata\Component\Payment\PaymentInterface |
public getPaymentCallbackResponse ( |
||
$request |
public getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket ) | ||
$basket | Sonata\Component\Basket\BasketInterface |
protected getValidOrder ( Sonata\Component\Payment\TransactionInterface $transaction ) : Sonata\Component\Order\OrderInterface | ||
$transaction | Sonata\Component\Payment\TransactionInterface | The request's transaction (will be linked to the order in the process) |
return | Sonata\Component\Order\OrderInterface |
public handleConfirmation ( |
||
$request |
public handleError ( |
||
$request | ||
$basket | Sonata\Component\Basket\BasketInterface |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected BackendInterface,Sonata\NotificationBundle\Backend $notificationBackend | ||
return | Sonata\NotificationBundle\Backend\BackendInterface |
protected OrderManagerInterface,Sonata\Component\Order $orderManager | ||
return | Sonata\Component\Order\OrderManagerInterface |
protected PaymentSelectorInterface,Sonata\Component\Payment $paymentSelector | ||
return | Sonata\Component\Payment\PaymentSelectorInterface |
protected ReferenceInterface,Sonata\Component\Generator $referenceGenerator | ||
return | Sonata\Component\Generator\ReferenceInterface |