Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 822 Bytes

2023-06-28-apply-domain-exceptions.md

File metadata and controls

14 lines (13 loc) · 822 Bytes
title issue
Apply domain exceptions
NEXT-28610

Core

  • Added new domain exception for payment Shopware\Core\Checkout\Payment\PaymentException
  • Added new exception methods orderNotFound, documentNotFound and generationError for Shopware\Core\Checkout\Document\DocumentException
  • Added new exception methods invalidPaymentOrderNotStored and orderNotFound for Shopware\Core\Checkout\Cart\CartException
  • Added new exception method paymentMethodNotAvailable for Shopware\Core\Checkout\Order\OrderException
  • Added new exception method unknownPaymentMethod for Shopware\Core\Checkout\Customer\CustomerException

Storefront

  • Changed Shopware\Storefront\Controller\AccountPaymentController::savePayment to catch PaymentException and forward to payment page with success = false.