cart
cart copied to clipboard
[BUGFIX] Allow to process stock after payment
Configurable switch of stockEvent and PaymentEvent. Resolves: #571
As discussed in #571 and #572 the processing of stock before the payment leads erroneous reduction in stock level if payment in external providers (as paypal or stripe) fails or is aborted. With this PR it is configurable to reorder the events (stock handling after payment). So if payment fails or is aborted, the stock remains untouched. Without extra configuration in setup.typoscript, the behaviour remains as is, so it's a non breaking change.