.. include:: ../../Includes.rst.txt ========================================================================== Feature: #866 - Status methods of the payment and the shipping of an order ========================================================================== See `Issue 866 `__ Description =========== The payment (``\Extcode\Cart\Domain\Model\Order\Payment``) and the shipping (``\Extcode\Cart\Domain\Model\Order\Shipping``) of an order have new methods for the status registered by EXT:cart: ========= ================================================================== Service Methods ========= ================================================================== payment ``isOpen()``, ``isPending()``, ``isPaid()``, ``isCanceled()`` shipping ``isOpen()``, ``isOnHold()``, ``isInProcess()``, ``isShipped()`` ========= ================================================================== They compare the status with the constants of ``\Extcode\Cart\OrderStatus\PaymentStatus`` and ``\Extcode\Cart\OrderStatus\ShippingStatus``. Status registered by other extensions have no method, compare them with ``getStatus()``. The status is still changed with the ``StatusChangeService``. See :ref:`developer-order-status`. Impact ====== Extensions, e.g. for payment providers, use the methods instead of comparing the status with strings or constants themselves. .. index:: PHP-API