PaymentMethodNotChangeableException example



    /** * @throws PaymentMethodNotChangeableException */
    private function validatePaymentState(OrderEntity $order): void
    {
        if ($this->orderService->isPaymentChangeableByTransactionState($order)) {
            return;
        }

        throw new PaymentMethodNotChangeableException($order->getId());
    }
}
Home | Imprint | This part of the site doesn't use cookies.