Feature: 337 - Split Up ProcessOrderCreateEvent¶
See Issue #337
In order to better integrate the EventListener in connection with
payment providers, the
was split into several events.
These implement a new EventInterface and also the
\Extcode\Cart\Event\ProcessOrderCreateEvent has been marked as
deprecated and will be removed in version 8.x.
The new events in the order of their dispatch:
The new events can be activated via a feature toggle in
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['SplitUpProcessOrderCreateEvent'] = true;
The cart extension itself currently registers
And the extension registers
The product extensions extcode/cart-products, extcode/cart-events, and extcode/cart-books will
register the EventListeners to
The payment methods provider extensions should be registered to the
These should return true for the
isPropagationStopped() if the payment process cannot be completed
immediately, to prevent sending emails and clearing the cart session directly. The emails and clearing cart
is then the responsibility of the extension. Of course, the extension itself can send appropriate events and
the EventListener from this extension can be registered to it.
If the feature toggle has been activated, the event
\Extcode\Cart\Event\ProcessOrderCreateEvent will no longer be triggered.
All EventListeners registered to this event must be registered to one of the new events.